Skip to content

Commit 9b0a1de

Browse files
liubiinFelipe Balbi
authored andcommitted
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 <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent eaaa775 commit 9b0a1de

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/usb/musb/musb_gadget.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,6 @@ static int musb_gadget_start(struct usb_gadget *g,
18531853
musb->gadget_driver = driver;
18541854

18551855
spin_lock_irqsave(&musb->lock, flags);
1856-
musb->is_active = 1;
18571856

18581857
otg_set_peripheral(otg, &musb->g);
18591858
musb->xceiv->state = OTG_STATE_B_IDLE;

0 commit comments

Comments
 (0)