projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaaa775
)
usb: musb: gadget: fix otg active status flag
author
Bin Liu
<b-liu@ti.com>
Tue, 17 Sep 2013 20:33:35 +0000
(15:33 -0500)
committer
Felipe Balbi
<balbi@ti.com>
Wed, 25 Sep 2013 20:42:33 +0000
(15:42 -0500)
In gadget mode, musb->is_active should be set only when connected to the
host. musb_g_reset() already takes care of it.
Signed-off-by: Bin Liu <b-liu@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 58c029f1e74c7513c5dd137fb1d582e4073f48dc..b19ed213ab8580c5456cbddaca4f217db31733c4 100644
(file)
--- a/
drivers/usb/musb/musb_gadget.c
+++ b/
drivers/usb/musb/musb_gadget.c
@@
-1853,7
+1853,6
@@
static int musb_gadget_start(struct usb_gadget *g,
musb->gadget_driver = driver;
spin_lock_irqsave(&musb->lock, flags);
- musb->is_active = 1;
otg_set_peripheral(otg, &musb->g);
musb->xceiv->state = OTG_STATE_B_IDLE;