From 1e45c757ed3d7940efab47316f3ff0bf17146bd6 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Fri, 24 Aug 2007 06:33:02 -0700 Subject: [PATCH] musb_hdrc: Make tusb use musb_set_vbus() to turn on VBUS Make tusb use musb_set_vbus() to turn on VBUS. This should probably be handled in core musb code eventually. Signed-off-by: Tony Lindgren --- drivers/usb/musb/tusb6010.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 7006ecb8864..23840dcab78 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c @@ -721,12 +721,7 @@ tusb_otg_ints(struct musb *musb, u32 int_src, void __iomem *base) switch (musb->xceiv.state) { case OTG_STATE_A_IDLE: DBG(2, "Got SRP, turning on VBUS\n"); - devctl = musb_readb(musb->mregs, - MUSB_DEVCTL); - devctl |= MUSB_DEVCTL_SESSION; - musb_writeb(musb->mregs, MUSB_DEVCTL, - devctl); - musb->xceiv.state = OTG_STATE_A_WAIT_VRISE; + musb_set_vbus(musb, 1); /* CONNECT can wake if a_wait_bcon is set */ if (musb->a_wait_bcon != 0) -- 2.41.1