Commit e044323a authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] USB: hcd-pci suspend tweak

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.
parent 48820d1a
......@@ -318,6 +318,7 @@ int usb_hcd_pci_suspend (struct pci_dev *dev, u32 state)
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 @@ int usb_hcd_pci_resume (struct pci_dev *dev)
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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment