usb: musb: Fix idling after host mode by increasing autosuspend delay
authorTony Lindgren <tony@atomide.com>
Tue, 31 May 2016 15:05:09 +0000 (10:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jun 2016 21:58:59 +0000 (14:58 -0700)
commit7e1704dcf6b0a895f99e386ccc9ca631117e6d5b
tree24d2ed214a40b5a3ec655a4a54803c1ecb90fe77
parenta60d541a2d402c8645d5bb2ec8dabe474b66e018
usb: musb: Fix idling after host mode by increasing autosuspend delay

Looks like at least 2430 glue won't idle reliably with the 200 ms
autosuspend delay. This causes deeper idle states being blocked for
the whole SoC when disconnecting OTG A cable.

Increasing the delay to 500 ms seems to idle both MUSB and the PHY
reliably. This is probably because of time needed by the hardware
based negotiation between MUSB and the PHY.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c