summaryrefslogtreecommitdiffstats
path: root/Documentation/usb/power-management.txt
diff options
context:
space:
mode:
authorPratyush Anand2014-07-04 16:01:27 +0200
committerGreg Kroah-Hartman2014-07-10 00:41:34 +0200
commit51df62ff74b371866c1006dee887a8e42838c1f2 (patch)
treee0789766eef80b4adf66b4df57297380c55a9454 /Documentation/usb/power-management.txt
parentdwc3: host: Enable USB3 LPM capability (diff)
downloadkernel-qcow2-linux-51df62ff74b371866c1006dee887a8e42838c1f2.tar.gz
kernel-qcow2-linux-51df62ff74b371866c1006dee887a8e42838c1f2.tar.xz
kernel-qcow2-linux-51df62ff74b371866c1006dee887a8e42838c1f2.zip
usb: allow lpm (en/dis)able only if device is atleast in default state
When a USB device is disconnected, usb_unbind_interface is called, which tries to enable and disable LPM. usb_enable_lpm also try to send a control command SET SEL to the device. Since device is already disconnected, therefore it does not make sense to execute usb_(en/dis)able_lpm. This patch returns from usb_(en/dis)able_lpm, if device was not in default state atleast. Signed-off-by: Pratyush Anand <pratyush.anand@st.com> Tested-by: Aymen Bouattay <aymen.bouattay@st.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/usb/power-management.txt')
0 files changed, 0 insertions, 0 deletions