File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1024,12 +1024,6 @@ static int __dwc3_gadget_ep_disable(struct dwc3_ep *dep)
1024
1024
reg &= ~DWC3_DALEPENA_EP (dep -> number );
1025
1025
dwc3_writel (dwc -> regs , DWC3_DALEPENA , reg );
1026
1026
1027
- /* Clear out the ep descriptors for non-ep0 */
1028
- if (dep -> number > 1 ) {
1029
- dep -> endpoint .comp_desc = NULL ;
1030
- dep -> endpoint .desc = NULL ;
1031
- }
1032
-
1033
1027
dwc3_remove_requests (dwc , dep , - ESHUTDOWN );
1034
1028
1035
1029
dep -> stream_capable = false;
@@ -1044,6 +1038,12 @@ static int __dwc3_gadget_ep_disable(struct dwc3_ep *dep)
1044
1038
mask |= (DWC3_EP_DELAY_STOP | DWC3_EP_TRANSFER_STARTED );
1045
1039
dep -> flags &= mask ;
1046
1040
1041
+ /* Clear out the ep descriptors for non-ep0 */
1042
+ if (dep -> number > 1 ) {
1043
+ dep -> endpoint .comp_desc = NULL ;
1044
+ dep -> endpoint .desc = NULL ;
1045
+ }
1046
+
1047
1047
return 0 ;
1048
1048
}
1049
1049
You can’t perform that action at this time.
0 commit comments