I needed this to get an APM + UHCI config to behave on resume. Applies against your BK of last night ... OHCI and EHCI do some of this manually, they could be simplified later.
- Dave
--- 1.32/drivers/usb/core/hcd-pci.c Thu May 6 12:40:22 2004
+++ edited/drivers/usb/core/hcd-pci.c Tue May 11 16:28:40 2004
@@ -318,6 +318,7 @@
if (has_pci_pm)
retval = pci_set_power_state (dev, state);
+ dev->dev.power.power_state = state;
if (retval < 0) {
dev_dbg (&dev->dev,
"PCI suspend fail, %d\n",
@@ -357,6 +358,7 @@
if (has_pci_pm)
pci_set_power_state (dev, 0);
+ dev->dev.power.power_state = 0;
retval = request_irq (dev->irq, usb_hcd_irq, SA_SHIRQ,
hcd->description, hcd);
if (retval < 0) {
