mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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]>
This commit is contained in:
parent
eaaa775b5f
commit
9b0a1de3c8
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue