Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b0a1de3 authored by Bin Liu's avatar Bin Liu Committed by Felipe Balbi
Browse files

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: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent eaaa775b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;