]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
usb: xhci: only set D3hot for pci device
authorHenry Lin <henryl@nvidia.com>
Wed, 11 Dec 2019 14:20:04 +0000 (16:20 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 13:29:10 +0000 (07:29 -0600)
commit160066a02717507d2f387dea9d253e26a600a906
tree2fea34ba5b9b4a839db847f54ae2e0690d1f299e
parent86c001c0f99388c29953fad11f0956d25873a1ca
usb: xhci: only set D3hot for pci device

BugLink: https://bugs.launchpad.net/bugs/1858424
commit f2c710f7dca8457e88b4ac9de2060f011254f9dd upstream.

Xhci driver cannot call pci_set_power_state() on non-pci xhci host
controllers. For example, NVIDIA Tegra XHCI host controller which acts
as platform device with XHCI_SPURIOUS_WAKEUP quirk set in some platform
hits this issue during shutdown.

Cc: <stable@vger.kernel.org>
Fixes: 638298dc66ea ("xhci: Fix spurious wakeups after S5 on Haswell")
Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20191211142007.8847-4-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h