Commit 901dcc44 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Don't idle as host if VBUS timeout is 0

VBUS must be on all the time in this case.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent fc7ac4a0
......@@ -482,7 +482,9 @@ void musb_platform_try_idle(struct musb *musb, unsigned long timeout)
if (timeout == 0)
timeout = default_timeout;
if (musb->is_active) {
/* Never idle if active, or when VBUS timeout is not set as host */
if (musb->is_active || ((musb->a_wait_bcon == 0)
&& (musb->xceiv.state == OTG_STATE_A_WAIT_BCON))) {
DBG(4, "%s active, deleting timer\n", otg_state_string(musb));
del_timer(&musb_idle_timer);
last_timer = jiffies;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment