Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030990Ab0B1AcY (ORCPT ); Sat, 27 Feb 2010 19:32:24 -0500 Received: from gate.crashing.org ([63.228.1.57]:55409 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030973Ab0B1AcW (ORCPT ); Sat, 27 Feb 2010 19:32:22 -0500 Subject: Re: Proposal to move PCI out of arch/powerpc and into drivers/of From: Benjamin Herrenschmidt To: John Linn Cc: linux-kernel@vger.kernel.org, devicetree-discuss@ozlabs.org, linuxppc-dev@ozlabs.org, microblaze-uclinux@itee.uq.edu.au, grant.likely@secretlab.ca, John Williams , michal.simek@petalogix.com In-Reply-To: <27bab769-0788-4b48-96a7-ced65e40144c@SG2EHSMHS007.ehs.local> References: <27bab769-0788-4b48-96a7-ced65e40144c@SG2EHSMHS007.ehs.local> Content-Type: text/plain; charset="UTF-8" Date: Sun, 28 Feb 2010 11:32:06 +1100 Message-ID: <1267317126.23523.1859.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1531 Lines: 40 On Fri, 2010-02-26 at 16:07 -0700, John Linn wrote: > Hi all, > > We are in the process of putting PCI/PCIe into the microblaze > architecture. > > In order to not duplicate/fork the PCI code in Powerpc, we're proposing > to move the PCI code from arch/powerpc into drivers/of such that it > would be common code for Powerpc and MicroBlaze. > > This would be the 1st part of a refactoring that would occur with the > PCI code. > > Ben H., would you mind if that happened (move arch/powerpc/kernel/pci* > to drivers/of/*)? I don't think we should move the whole thing. I know Grant plans to move parts of it though. There's quite a few things in there that are still quite powerpc specific (and even different between ppc32 and ppc64). I wouldn't mind in the long run if we could make some of powerpc's PCI implementation bits more generic, such as struct pci_controller, and the MMIO/PIO remapping mechanisms, since many archs do more or less the same thing and all in subtely different ways. But that would have to go to drivers/pci. Then there's the whole deal with matching OF nodes with PCI devices. A lot of that is still different even between ppc32 and ppc64. I don't think any of that is ready to be moved to drivers/of, it's not generic enough by far. Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/