diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2020-02-10 15:45:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-10 06:56:21 -0800 |
commit | 024d411e9c5d49eb96c825af52a3ce2682895676 (patch) | |
tree | a485dee049a4092df5184b05a3104072515d12cc /block/blk-wbt.c | |
parent | fc57313d1017dd6b6f37a94e88daa8df54368ecc (diff) | |
download | linux-024d411e9c5d49eb96c825af52a3ce2682895676.tar.bz2 |
xhci: fix runtime pm enabling for quirky Intel hosts
Intel hosts that need the XHCI_PME_STUCK_QUIRK flag should enable
runtime pm by calling xhci_pme_acpi_rtd3_enable() before
usb_hcd_pci_probe() calls pci_dev_run_wake().
Otherwise usage count for the device won't be decreased, and runtime
suspend is prevented.
usb_hcd_pci_probe() only decreases the usage count if device can
generate run-time wake-up events, i.e. when pci_dev_run_wake()
returns true.
This issue was exposed by pci_dev_run_wake() change in
commit 8feaec33b986 ("PCI / PM: Always check PME wakeup capability for
runtime wakeup support")
and should be backported to kernels with that change
Cc: <stable@vger.kernel.org> # 4.13+
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200210134553.9144-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-wbt.c')
0 files changed, 0 insertions, 0 deletions