diff options
author | Sarah Sharp | 2012-07-05 23:09:30 +0200 |
---|---|---|
committer | Sarah Sharp | 2012-07-11 13:06:47 +0200 |
commit | 249719121bc2b841bdfcab5eb21b10d8b871743b (patch) | |
tree | 4f843a0963d59bbe21751737f4482847123e2b65 /include/linux/usb.h | |
parent | USB: Disable LPM while the device is unconfigured. (diff) | |
download | kernel-qcow2-linux-249719121bc2b841bdfcab5eb21b10d8b871743b.tar.gz kernel-qcow2-linux-249719121bc2b841bdfcab5eb21b10d8b871743b.tar.xz kernel-qcow2-linux-249719121bc2b841bdfcab5eb21b10d8b871743b.zip |
USB: Fix LPM disable count mismatch on driver unbind.
When a user runs `echo 0 > bConfigurationValue` for a USB 3.0 device,
usb_disable_device() is called. This function disables all drivers,
deallocates interfaces, and sets the device configuration value to 0
(unconfigured).
With the new scheme to ensure that unconfigured devices have LPM
disabled, usb_disable_device() must call usb_unlocked_disable_lpm() once
it unconfigures the device.
This commit should be backported to kernels as old as 3.5, that contain
the commit 8306095fd2c1100e8244c09bf560f97aca5a311d "USB: Disable USB
3.0 LPM in critical sections."
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'include/linux/usb.h')
0 files changed, 0 insertions, 0 deletions