Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262069AbTHYReJ (ORCPT ); Mon, 25 Aug 2003 13:34:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262070AbTHYReJ (ORCPT ); Mon, 25 Aug 2003 13:34:09 -0400 Received: from fed1mtao07.cox.net ([68.6.19.124]:22999 "EHLO fed1mtao07.cox.net") by vger.kernel.org with ESMTP id S262069AbTHYReF (ORCPT ); Mon, 25 Aug 2003 13:34:05 -0400 Date: Mon, 25 Aug 2003 10:34:04 -0700 From: Matt Porter To: Patrick Mochel , Pavel Machek , torvalds@osdl.org, kernel list Subject: Re: [PM] Patrick: which part of "maintainer" and "peer review" needs explaining to you? Message-ID: <20030825103404.D28149@home.com> References: <20030823114738.B25729@flint.arm.linux.org.uk> <20030825172737.E16790@flint.arm.linux.org.uk> <20030825095720.B28149@home.com> <20030825181415.F16790@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030825181415.F16790@flint.arm.linux.org.uk>; from rmk@arm.linux.org.uk on Mon, Aug 25, 2003 at 06:14:15PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2428 Lines: 52 On Mon, Aug 25, 2003 at 06:14:15PM +0100, Russell King wrote: > On Mon, Aug 25, 2003 at 09:57:20AM -0700, Matt Porter wrote: > > Alternatively, you could leave the platform model as is (it's only > > for really dumb devices). > > Thing is that we use the platform model for off chip devices as well. > On ARM, its gets used for any device which the platform code knows > where it is located. ie, a platform device. > > > On PPC, we have an OCP (on chip peripheral) > > model that is mostly integrated into the device model now. OCP is > > just another bus/driver type and so PM works in the normal fashion. > > Ah, but OCP can't be used to describe a platform dependent SMC91x > network interface that some random designer decided to drop into > their design - it isn't part of the SoC. There's nothing inherent in OCP (except the name) that prevents this. In fact, that's one of the directions we wanted to go with it because of PPC4xx external bus controller devices that are board specific. > > There's a driver API around it as well so we can cleanly share drivers > > across various SoC implementations with different base address, > > IRQ mappings, etc. It might be more useful to extende this across > > the architectures that need it. > > Note that we've already done some public work on providing flexible > platform device support to satisfy the needs of platform people - > by adding the variable number of resources to the platform device. Yes, I recall asking for more interrupt resources when I thought it might be useful. However, the PPC4xx stuff is requiring a move to a finer grained specification of internal bus types to properly implement PM. It's necessary to know if a device is a child of the PLB, OPB, EBC, etc. to know when to power down various internal bus drivers as well. I don't see that happening with platform devices even with the addition of PM ops. Perhaps this isn't applicable to more than PPC, though. > Also note that most of the x86 ISA PCMCIA devices _are_ platform > devices today. As of this new power management model, they're > broken due to the fact that they no longer receive power management > events. I see. -Matt - 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/