]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: xhci: Disable runtime PM suspend for quirky controllers
authorShawn Nematbakhsh <shawnn@chromium.org>
Mon, 19 Aug 2013 17:36:13 +0000 (10:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:18:04 +0000 (17:18 -0700)
commit54d8c40da1d8763cfa5699516626f8ed37db3eed
treecd393702f29f64e35881ae6e0ec730289adddd22
parenta6025b95e6d05833f19eaca2f4e181bf77a854ed
usb: xhci: Disable runtime PM suspend for quirky controllers

commit c8476fb855434c733099079063990e5bfa7ecad6 upstream.

If a USB controller with XHCI_RESET_ON_RESUME goes to runtime suspend,
a reset will be performed upon runtime resume. Any previously suspended
devices attached to the controller will be re-enumerated at this time.
This will cause problems, for example, if an open system call on the
device triggered the resume (the open call will fail).

Note that this change is only relevant when persist_enabled is not set
for USB devices.

This patch should be backported to kernels as old as 3.0, that
contain the commit c877b3b2ad5cb9d4fe523c5496185cc328ff3ae9 "xhci: Add
reset on resume quirk for asrock p67 host".

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c