Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 13 Nov 2002 06:53:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 13 Nov 2002 06:53:27 -0500 Received: from jurassic.park.msu.ru ([195.208.223.243]:20231 "EHLO jurassic.park.msu.ru") by vger.kernel.org with ESMTP id ; Wed, 13 Nov 2002 06:53:26 -0500 Date: Wed, 13 Nov 2002 14:59:02 +0300 From: Ivan Kokshaysky To: Greg KH Cc: Miles Bader , "J.E.J. Bottomley" , Matthew Wilcox , "Adam J. Richter" , andmike@us.ibm.com, hch@lst.de, linux-kernel@vger.kernel.org, mochel@osdl.org, parisc-linux@lists.parisc-linux.org Subject: Re: [parisc-linux] Untested port of parisc_device to generic device interface Message-ID: <20021113145902.A1245@jurassic.park.msu.ru> References: <20021109060342.GA7798@kroah.com> <200211091533.gA9FXuW02017@localhost.localdomain> <20021113061310.GD2106@kroah.com> <20021113075223.GZ2106@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021113075223.GZ2106@kroah.com>; from greg@kroah.com on Tue, Nov 12, 2002 at 11:52:23PM -0800 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1328 Lines: 31 On Tue, Nov 12, 2002 at 11:52:23PM -0800, Greg KH wrote: > On Wed, Nov 13, 2002 at 04:46:58PM +0900, Miles Bader wrote: > > This this would end up [or have the ability to] invoking a bus-specific > > routine at some point, right? [so that a truly PCI-specific definition > > could be still be had] > > If that was needed, yes, we should not break that functionality. > > Are there any existing archs that need more than just dma_mask moved to > struct device out of pci_dev? Hm, ppc might need a bit more... Add alpha, parisc, sparc and so on. ;-) pci_dev->sysdata needs to be moved as well, but not only. It seems that two things are fundamentally missing in generic device model: 1. clean way to detect the type of container structure from arbitrary struct device *; 2. parent/child relationship between devices of different bus types. Example (not exactly real life, but close enough): to do DMA mapping properly for, say, some legacy device, I need to know that it's sitting behind ISA-to-PCI bridge X belonging in PCI domain Y of the root-level IO controller Z. Ivan. - 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/