1
0
Fork 0

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
Peter Chen 2018-04-27 11:29:16 +08:00 committed by Jason Liu
parent 37e1a8b1f7
commit 1473536864
1 changed files with 1 additions and 0 deletions

View File

@ -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;