Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 25 Oct 2001 05:48:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 25 Oct 2001 05:48:36 -0400 Received: from s2.relay.oleane.net ([195.25.12.49]:35333 "HELO s2.relay.oleane.net") by vger.kernel.org with SMTP id ; Thu, 25 Oct 2001 05:48:26 -0400 From: Benjamin Herrenschmidt To: Linus Torvalds Cc: , "Eric W. Biederman" , Patrick Mochel Subject: Re: [RFC] New Driver Model for 2.5 Date: Thu, 25 Oct 2001 11:47:04 +0200 Message-Id: <20011025094704.11412@smtp.adsl.oleane.com> In-Reply-To: In-Reply-To: X-Mailer: CTM PowerMail 3.0.8 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >> Or another fun common one. To shut down the interrupt controller, I first >> need to shut down every device that thinks it can generate interrupts. >> But my interrupt controller is way out on my pci->isa bridge. So I >> can't shut that device down. >> >> Sorry this whole device tree idea for shutdown ordering doesn't seem >> to match my idea of reality. > >Your _examples_ do not match any reality. > >Don't worry about things like the CPU shutdown: you have to have special >code for it anyway. > >Let's face it, the device tree is for _devices_. It's for shutting down a >network card before we shut down the PCI bridge that is in front of it. > >The issue of "core shutdown" is not covered - and isn't _meant_ to be >covered. That's the problem of the architecture-specific code. There is no >point in having a device tree for that, because it's going to be very much >architecture-specific anyway (ie on x86 we may have to just blindly trust >some silly APCI table data etc). Definitelly. I have similar issues with pmacs, clocks generation and interrupt controller are in Apple's mac-io ASIC which is on PCI, so this ASIC can't be part of the normal PM tree and has to be handled as part of the "core" PM code. This kind of issue will still happen, the new scheme won't "magically" make PM work on every single laptop out there, there will still be some corner cases to deal with, but at least these will be limited to real corner cases and most "normal" drivers will fit in the new, saner, mecanism. 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/