projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
603ab52
)
usb: musb: Calling VBUS pulsing API when SRP is initiated.
author
Hema HK
<hemahk@ti.com>
Tue, 22 Mar 2011 11:24:22 +0000
(16:54 +0530)
committer
Felipe 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/musb/musb_gadget.c
b/drivers/usb/musb/musb_gadget.c
index d34ff408c81571bef89944925a7c542ac378bf0c..6f3cf4ce8bd6e374970640a007ee8dd0839b3638 100644
(file)
--- 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)
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));