From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964915AbZLPTX0 (ORCPT ); Wed, 16 Dec 2009 14:23:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935388AbZLPTXX (ORCPT ); Wed, 16 Dec 2009 14:23:23 -0500 Received: from outbound-mail-306.bluehost.com ([67.222.53.252]:41628 "HELO outbound-mail-306.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S935386AbZLPTXV (ORCPT ); Wed, 16 Dec 2009 14:23:21 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=virtuousgeek.org; h=Received:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=XS43PaswbZ+pqjuOkbjLlsXx93pg2Su+dv5VsqGRcSmdbAkLNI26zfSbDVJwxjgBS7RbQlvC8CmiAYy9OPlxqeL7zS0pnHRf2Sm1fj3m4o9akV4nhtnyEXaR+YzEcymE; Date: Wed, 16 Dec 2009 11:23:02 -0800 From: Jesse Barnes To: Benjamin Herrenschmidt Cc: linux-pci@vger.kernel.org, "linux-kernel@vger.kernel.org" , linuxppc-dev , blofeldus@yahoo.com, Olof Johansson Subject: Re: [PATCH] cardbus: Add a fixup hook and fix powerpc Message-ID: <20091216112302.5b9b8e5c@jbarnes-piketon> In-Reply-To: <1260341533.16132.20.camel@pasglop> References: <1260341533.16132.20.camel@pasglop> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.3; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Identified-User: {10642:box514.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 75.111.28.251 authed with jbarnes@virtuousgeek.org} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 09 Dec 2009 17:52:13 +1100 Benjamin Herrenschmidt wrote: > The cardbus code creates PCI devices without ever going through the > necessary fixup bits and pieces that normal PCI devices go through. > > There's in fact a commented out call to pcibios_fixup_bus() in there, > it's commented because ... it doesn't work. > > I could make pcibios_fixup_bus() do the right thing on powerpc easily > but I felt it cleaner instead to provide a specific hook > pci_fixup_cardbus for which a weak empty implementation is provided > by the PCI core. > > This fixes cardbus on powerbooks and probably all other PowerPC > platforms which was broken completely for ever on some platforms and > since 2.6.31 on others such as PowerBooks when we made the DMA ops > mandatory (since those are setup by the fixups). > > Signed-off-by: Benjamin Herrenschmidt Applied, thanks. Had to fix up a conflict since someone had "helpfully" changed the comment from a // to a /* .. */ in cardbus.c. -- Jesse Barnes, Intel Open Source Technology Center