USB suspend and resume for PCI host controllers
Subsystems (4)
Alan Stern
maintainerQuoted 6 lines · Rafael J. Wysocki
Quoted 3 lines
Quoted 1 line
Well, it looks like you forgot to actually call
pci_save_power_state(). :-)I didn't forget it -- in my tree there is no such function! :-)
That should have been
pci_save_state(). [Note to self: don't send email when you're too tired.]
Yes, adding pci_save_state() fixed the problem. Here is the new patch; it seems to work. Anything else need to be changed?
Alan Stern
drivers/usb/core/hcd.h +3 -1
@@ -256,7 +256,9 @@ extern int usb_hcd_pci_probe(struct pci_extern void usb_hcd_pci_remove (struct pci_dev *dev);#ifdef CONFIG_PM -extern int usb_hcd_pci_suspend (struct pci_dev *dev,pm_message_t state); +extern int usb_hcd_pci_suspend (struct pci_dev *dev,pm_message_t msg); +extern int usb_hcd_pci_suspend_late (struct pci_dev *dev,pm_message_t msg); +extern int usb_hcd_pci_resume_early (struct pci_dev *dev);extern int usb_hcd_pci_resume (struct pci_dev *dev);#endif /* CONFIG_PM */
drivers/usb/core/hcd-pci.c +106 -94
299 lines not on this page · raw message
drivers/usb/host/ehci-pci.c +2 -0
@@ -428,6 +428,8 @@ static struct pci_driver ehci_pci_driver#ifdef CONFIG_PM .suspend = usb_hcd_pci_suspend, + .suspend_late = usb_hcd_pci_suspend_late, + .resume_early = usb_hcd_pci_resume_early, .resume = usb_hcd_pci_resume, #endif .shutdown = usb_hcd_pci_shutdown,
drivers/usb/host/ohci-pci.c +2 -0
@@ -487,6 +487,8 @@ static struct pci_driver ohci_pci_driver#ifdef CONFIG_PM .suspend = usb_hcd_pci_suspend, + .suspend_late = usb_hcd_pci_suspend_late, + .resume_early = usb_hcd_pci_resume_early, .resume = usb_hcd_pci_resume,#endif
drivers/usb/host/uhci-hcd.c +2 -0
@@ -942,6 +942,8 @@ static struct pci_driver uhci_pci_driver#ifdef CONFIG_PM .suspend = usb_hcd_pci_suspend, + .suspend_late = usb_hcd_pci_suspend_late, + .resume_early = usb_hcd_pci_resume_early, .resume = usb_hcd_pci_resume,#endif /* PM */ };