Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753203AbYLFSau (ORCPT ); Sat, 6 Dec 2008 13:30:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751715AbYLFSal (ORCPT ); Sat, 6 Dec 2008 13:30:41 -0500 Received: from netrider.rowland.org ([192.131.102.5]:4632 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751464AbYLFSak (ORCPT ); Sat, 6 Dec 2008 13:30:40 -0500 Date: Sat, 6 Dec 2008 13:30:37 -0500 (EST) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: "Rafael J. Wysocki" cc: Linus Torvalds , Takashi Iwai , Greg KH , LKML , Jesse Barnes , pm list , Ingo Molnar , Andrew Morton Subject: Re: [linux-pm] [PATCH 1/3] PCI: Rework default handling of suspend and resume In-Reply-To: <200812061843.59495.rjw@sisk.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1553 Lines: 39 On Sat, 6 Dec 2008, Rafael J. Wysocki wrote: > On Saturday, 6 of December 2008, Linus Torvalds wrote: > > > > On Sat, 6 Dec 2008, Rafael J. Wysocki wrote: > > > > > > USB doesn't use that for PCI suspend-resume, it uses it for suspend-resume of > > > USB devices behind the controller. > > > > Oh, in that case there are no PCI users of this at all, and what the PCI > > driver does is immaterial ;) > > > > > But then we will save the device's registers in the "sleeping" state. > > > > No no. The rule would be that a PCI driver - if it uses the new > > infrastructure, which apparently nobody does _as_ a PCI driver - simply > > would never do the whole "pci_set_power_state(PCI_D3hot)" etc crud AT ALL. > > Now _that_ sounds good. :-) > > > So a PCI driver would only do higher-level stuff in its suspend/resume > > code. For example, a USB host controller would initiate the USB bus level > > stuff, and likely just stop the controller (not suspend it - just stop > > it). > > I like this idea very much. Rafael, I'd be happy to help with fixing up the USB PCI PM code. At this point I'm not sure exactly what's needed, though. For instance, is there any compelling reason to switch over to the new dev_pm_ops approach? And what should the correct sequence of calls be? Alan Stern -- 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/