From eca6bbd9b0f2de0d9c0e7239631d77e3334a29c5 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Wed, 15 Aug 2007 03:47:05 -0700 Subject: [PATCH] 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 --- drivers/usb/musb/tusb6010.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.41.1