]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
xhci: Avoid USB autosuspend when resuming USB2 ports.
authorAnshuman Gupta <anshuman.gupta@intel.com>
Thu, 20 Sep 2018 16:13:40 +0000 (19:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 13:04:45 +0000 (15:04 +0200)
commit330e2d61cdd58363eb5e66b2e72f76fe3c5492e0
treea52990a0b15d032da2e471caca42e3a80395ecdd
parente1c3c7e54ed3655c02248b4f1c7940aff4eecb56
xhci: Avoid USB autosuspend when resuming USB2 ports.

When USB bus host controller root hub resumes from autosuspend,
it immediately tries to enter auto-suspend, but there can be a
scenario when root hub is resuming its usb2 ports, in that particular
case USB host controller auto suspend fails since it is busy
to resuming its usb2 ports.

This makes multiple failed cycles of auto-suspend until all usb2
ports of host controller root hub do not resume.

This patch uses USB core framework usb_hcd_start_port_resume,
usb_hcd_end_port_resume API's in order to  autoresume/autosuspend
root hub properly.

Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c
drivers/usb/host/xhci-ring.c