Skip to content

Commit

Permalink
usb: musb: gadget: fix otg active status flag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bin Liu authored and Felipe Balbi committed Sep 25, 2013
1 parent eaaa775 commit 9b0a1de
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/musb/musb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b0a1de

Please sign in to comment.