From: Pratyush Anand Date: Fri, 4 Jul 2014 14:01:27 +0000 (+0300) Subject: usb: allow lpm (en/dis)able only if device is atleast in default state X-Git-Tag: omap-for-v3.17/fixes-against-rc2~164^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51df62ff74b371866c1006dee887a8e42838c1f2;p=pandora-kernel.git 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 Tested-by: Aymen Bouattay Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed