Commit eca6bbd9 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Keep tusb host clock on when VBUS is on

Otherwise host mode will not work when OMAP idles
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent c5d9f0a5
......@@ -530,6 +530,8 @@ static void tusb_source_power(struct musb *musb, int is_on)
devctl = musb_readb(musb->mregs, MGC_O_HDRC_DEVCTL);
if (is_on) {
if (musb->set_clock)
musb->set_clock(musb->clock, 1);
musb->is_active = 1;
timer = OTG_TIMER_MS(OTG_TIME_A_WAIT_VRISE);
musb->xceiv.default_a = 1;
......@@ -552,6 +554,8 @@ static void tusb_source_power(struct musb *musb, int is_on)
conf &= ~TUSB_DEV_CONF_USB_HOST_MODE;
MUSB_DEV_MODE(musb);
if (musb->set_clock)
musb->set_clock(musb->clock, 0);
}
prcm &= ~(TUSB_PRCM_MNGMT_15_SW_EN | TUSB_PRCM_MNGMT_33_SW_EN);
......
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