summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2016-10-21 16:45:38 -0400
committerBjorn Helgaas <bhelgaas@google.com>2016-11-11 16:31:13 -0600
commit6496ebd7edf446fccf8266a1a70ffcb64252593e (patch)
tree7028c58e093ea192bf75bdb46b8d39fd1d25f1fc /drivers/usb
parent1001354ca34179f3db924eb66672442a173147dc (diff)
downloadop-kernel-dev-6496ebd7edf446fccf8266a1a70ffcb64252593e.zip
op-kernel-dev-6496ebd7edf446fccf8266a1a70ffcb64252593e.tar.gz
PCI: Check for PME in targeted sleep state
One some systems, the firmware does not allow certain PCI devices to be put in deep D-states. This can cause problems for wakeup signalling, if the device does not support PME# in the deepest allowed suspend state. For example, Pierre reports that on his system, ACPI does not permit his xHCI host controller to go into D3 during runtime suspend -- but D3 is the only state in which the controller can generate PME# signals. As a result, the controller goes into runtime suspend but never wakes up, so it doesn't work properly. USB devices plugged into the controller are never detected. If the device relies on PME# for wakeup signals but is not capable of generating PME# in the target state, the PCI core should accurately report that it cannot do wakeup from runtime suspend. This patch modifies the pci_dev_run_wake() routine to add this check. Reported-by: Pierre de Villemereuil <flyos@mailoo.org> Tested-by: Pierre de Villemereuil <flyos@mailoo.org> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> CC: stable@vger.kernel.org CC: Lukas Wunner <lukas@wunner.de>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud