summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Liu <b-liu@ti.com>2013-09-17 15:33:35 -0500
committerSebastian Reichel <sre@debian.org>2013-10-12 23:15:00 +0200
commitffd683755f0483d652bcf3c1fbc1ad2f567f9407 (patch)
treefa9e4e2fe6d2f0ae6b01a672760d47e556b9a7d4
parent1aec44895d348c0319f807008a26891d3e2cd5ab (diff)
downloadlinux-ffd683755f0483d652bcf3c1fbc1ad2f567f9407.tar.bz2
usb: musb: gadget: fix otg active status flag
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>
-rw-r--r--drivers/usb/musb/musb_gadget.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 58c029f1e74c..b19ed213ab85 100644
--- 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;