Skip to content

Commit

Permalink
usb: musb: Calling VBUS pulsing API when SRP is initiated.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hema HK authored and Felipe Balbi committed May 13, 2011
1 parent 603ab52 commit 8620543
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/usb/musb/musb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 8620543

Please sign in to comment.