Blame linux-2.6-usb-pci-autosuspend.patch
|
Matthew Garrett |
2b89a04 |
commit 15d89120d03116adbbf3226a85fbd2fff0b12576
|
|
Matthew Garrett |
2b89a04 |
Author: Matthew Garrett <mjg@redhat.com>
|
|
Matthew Garrett |
2b89a04 |
Date: Fri Sep 17 11:09:12 2010 -0400
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
Enable USB PCI autosuspend by default
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
|
|
Matthew Garrett |
2b89a04 |
index c3f9854..3c020e6 100644
|
|
Matthew Garrett |
2b89a04 |
--- a/drivers/usb/core/hcd-pci.c
|
|
Matthew Garrett |
2b89a04 |
+++ b/drivers/usb/core/hcd-pci.c
|
|
Matthew Garrett |
2b89a04 |
@@ -248,8 +248,10 @@ int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
|
Matthew Garrett |
2b89a04 |
goto err4;
|
|
Matthew Garrett |
2b89a04 |
set_hs_companion(dev, hcd);
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
- if (pci_dev_run_wake(dev))
|
|
Matthew Garrett |
2b89a04 |
+ if (pci_dev_run_wake(dev)) {
|
|
Matthew Garrett |
2b89a04 |
pm_runtime_put_noidle(&dev->dev);
|
|
Matthew Garrett |
2b89a04 |
+ pm_runtime_allow(&dev->dev);
|
|
Matthew Garrett |
2b89a04 |
+ }
|
|
Matthew Garrett |
2b89a04 |
return retval;
|
|
Matthew Garrett |
2b89a04 |
|
|
Matthew Garrett |
2b89a04 |
err4:
|