]> git.baikalelectronics.ru Git - kernel.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)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 27 Aug 2013 15:50:37 +0000 (08:50 -0700)
commit56496483e5ded5ab137621ae33be2ebbffe2ef4b
treedba6e2164c6d4a75a7a5bf4b1ac29e2f7adb8c0a
parent6ecfb7964422777e2978f5fb9ca9d796b9f2959f
usb: xhci: Disable runtime PM suspend for quirky controllers

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 6020e826f51fc25af4ec3e04ecfa94eb5431b43a "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>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci.c