]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: musb: Calling VBUS pulsing API when SRP is initiated.
authorHema HK <hemahk@ti.com>
Tue, 22 Mar 2011 11:24:22 +0000 (16:54 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 13 May 2011 11:43:56 +0000 (14:43 +0300)
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>
drivers/usb/musb/musb_gadget.c

index d34ff408c81571bef89944925a7c542ac378bf0c..6f3cf4ce8bd6e374970640a007ee8dd0839b3638 100644 (file)
@@ -1553,6 +1553,10 @@ static int musb_gadget_wakeup(struct usb_gadget *gadget)
                                break;
                }
 
+               spin_unlock_irqrestore(&musb->lock, flags);
+               otg_start_srp(musb->xceiv);
+               spin_lock_irqsave(&musb->lock, flags);
+
                /* Block idling for at least 1s */
                musb_platform_try_idle(musb,
                        jiffies + msecs_to_jiffies(1 * HZ));