From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933243AbZLQC4y (ORCPT ); Wed, 16 Dec 2009 21:56:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756663AbZLQC4u (ORCPT ); Wed, 16 Dec 2009 21:56:50 -0500 Received: from outbound-mail-310.bluehost.com ([67.222.54.3]:39060 "HELO outbound-mail-310.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755075AbZLQC4t (ORCPT ); Wed, 16 Dec 2009 21:56:49 -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=YeGebh8Tpk81yrExMv6ka95CDdwlranZ2cqbAQZngmrbVseFMoo2Zs1oDooII/TBvrUNuKB21c9N4DQtuqNZTUQfPq2VBY2xGDvyt1DEjki1qN5Huj8kFYjPuNTuWDnh; Date: Wed, 16 Dec 2009 18:56:27 -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: <20091216185627.2ea4f3d8@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 Ah the link failure was my fault. I had fixed up the conflict incorrectly. It's applied now. -- Jesse Barnes, Intel Open Source Technology Center