From stern@rowland.harvard.edu Mon Nov 26 22:51:16 2007 From: Alan Stern Date: Mon, 19 Nov 2007 15:57:45 -0500 (EST) Subject: USB: don't change HC power state for a FREEZE To: Greg KH Cc: David Brownell , USB development list Message-ID: This patch (as1016) prevents PCI-based host controllers from undergoing a power-state change during a FREEZE or a PRETHAW. Such changes are needed only during a SUSPEND. Signed-off-by: Alan Stern CC: David Brownell Signed-off-by: Greg Kroah-Hartman --- drivers/usb/core/hcd-pci.c | 6 ++++++ 1 file changed, 6 insertions(+) --- a/drivers/usb/core/hcd-pci.c +++ b/drivers/usb/core/hcd-pci.c @@ -250,6 +250,12 @@ int usb_hcd_pci_suspend (struct pci_dev pci_disable_device (dev); } + if (message.event == PM_EVENT_FREEZE || + message.event == PM_EVENT_PRETHAW) { + dev_dbg(hcd->self.controller, "--> no state change\n"); + goto done; + } + if (!has_pci_pm) { dev_dbg (hcd->self.controller, "--> PCI D0/legacy\n"); goto done;