MLK-17631-7 usb: cdns3: gadget: clear stalled_flag at .ep_enable
When the EP is going to enable, it should not be stalled, and the software flag needs to be updated. It fixes the mass_storage gadget can't work after re-plug in. Reviewed-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>pull/10/head
parent
37e1a8b1f7
commit
1473536864
|
@ -1520,6 +1520,7 @@ static int usb_ss_gadget_ep_enable(struct usb_ep *ep,
|
|||
ep->enabled = 1;
|
||||
ep->desc = desc;
|
||||
usb_ss_ep->hw_pending_flag = 0;
|
||||
usb_ss_ep->stalled_flag = 0;
|
||||
spin_unlock_irqrestore(&usb_ss->lock, flags);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue