aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorHema HK <hemahk@ti.com>2011-03-22 07:24:22 -0400
committerFelipe Balbi <balbi@ti.com>2011-05-13 07:43:56 -0400
commit8620543eda01a2d26ea1dd831f159e06da8163ad (patch)
tree51ccfd49609b0c1f118000d063f7a3244747bfe0 /drivers/usb
parent603ab524ed95f566b0f25566484d4f449e433d74 (diff)
usb: musb: Calling VBUS pulsing API when SRP is initiated.
Call VBUS pulsing API when there is SRP initiation from user space. Signed-off-by: Hema HK <hemahk@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/musb_gadget.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index d34ff408c815..6f3cf4ce8bd6 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1553,6 +1553,10 @@ static int musb_gadget_wakeup(struct usb_gadget *gadget)
1553 break; 1553 break;
1554 } 1554 }
1555 1555
1556 spin_unlock_irqrestore(&musb->lock, flags);
1557 otg_start_srp(musb->xceiv);
1558 spin_lock_irqsave(&musb->lock, flags);
1559
1556 /* Block idling for at least 1s */ 1560 /* Block idling for at least 1s */
1557 musb_platform_try_idle(musb, 1561 musb_platform_try_idle(musb,
1558 jiffies + msecs_to_jiffies(1 * HZ)); 1562 jiffies + msecs_to_jiffies(1 * HZ));