diff options
author | Matthew Garrett <mjg@redhat.com> | 2010-09-17 13:47:45 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-09-17 13:47:45 -0400 |
commit | 2b89a044b6b733b9e7b32ebc3fe3933650fcd63f (patch) | |
tree | 6e653ce5e40ce136ff906231deaf71d483965fb9 /linux-2.6-usb-pci-autosuspend.patch | |
parent | 606af2d7c2a1f391d8d7f6850bd6685a2a887965 (diff) | |
download | kernel-2b89a044b6b733b9e7b32ebc3fe3933650fcd63f.tar.gz kernel-2b89a044b6b733b9e7b32ebc3fe3933650fcd63f.tar.xz kernel-2b89a044b6b733b9e7b32ebc3fe3933650fcd63f.zip |
Add more USB runtime power management
Diffstat (limited to 'linux-2.6-usb-pci-autosuspend.patch')
-rw-r--r-- | linux-2.6-usb-pci-autosuspend.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/linux-2.6-usb-pci-autosuspend.patch b/linux-2.6-usb-pci-autosuspend.patch new file mode 100644 index 000000000..610a7654d --- /dev/null +++ b/linux-2.6-usb-pci-autosuspend.patch @@ -0,0 +1,22 @@ +commit 15d89120d03116adbbf3226a85fbd2fff0b12576 +Author: Matthew Garrett <mjg@redhat.com> +Date: Fri Sep 17 11:09:12 2010 -0400 + + Enable USB PCI autosuspend by default + +diff --git a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c +index c3f9854..3c020e6 100644 +--- a/drivers/usb/core/hcd-pci.c ++++ b/drivers/usb/core/hcd-pci.c +@@ -248,8 +248,10 @@ int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) + goto err4; + set_hs_companion(dev, hcd); + +- if (pci_dev_run_wake(dev)) ++ if (pci_dev_run_wake(dev)) { + pm_runtime_put_noidle(&dev->dev); ++ pm_runtime_allow(&dev->dev); ++ } + return retval; + + err4: |