From: Tony Lindgren Date: Wed, 15 Aug 2007 10:47:05 +0000 (-0700) Subject: musb_hdrc: Keep tusb host clock on when VBUS is on X-Git-Tag: v2.6.23-omap1~224 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=eca6bbd9b0f2de0d9c0e7239631d77e3334a29c5;p=linux-2.6-omap-h63xx.git musb_hdrc: Keep tusb host clock on when VBUS is on Otherwise host mode will not work when OMAP idles Signed-off-by: Tony Lindgren --- diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 142ef3cce64..d43b5cc5018 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -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);