Message ID | 20240814-dwc3hwep0reset-v2-1-29e1d7d923ea@pengutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 72fca8371f205d654f95b09cd023a71fd5307041 |
Headers | show |
Series | [v2] usb: dwc3: ep0: Don't reset resource alloc flag (including ep0) | expand |
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index d96ffbe520397..c9533a99e47c8 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -232,7 +232,8 @@ void dwc3_ep0_stall_and_restart(struct dwc3 *dwc) /* stall is always issued on EP0 */ dep = dwc->eps[0]; __dwc3_gadget_ep_set_halt(dep, 1, false); - dep->flags = DWC3_EP_ENABLED; + dep->flags &= DWC3_EP_RESOURCE_ALLOCATED; + dep->flags |= DWC3_EP_ENABLED; dwc->delayed_status = false; if (!list_empty(&dep->pending_list)) {