Skip to content

Commit ffb9da4

Browse files
Thinh Nguyengregkh
authored andcommitted
usb: dwc3: gadget: Return -ESHUTDOWN on ep disable
The usb_request API clearly noted that removed requests due to disabled endpoint should have -ESHUTDOWN status returned. Don't change this behavior. Fixes: b44c0e7 ("usb: dwc3: gadget: conditionally remove requests") Signed-off-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/3421859485cb32d77e2068549679a6c07a7797bc.1667875427.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cd13670 commit ffb9da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc3/gadget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ static int __dwc3_gadget_ep_disable(struct dwc3_ep *dep)
10291029
dep->endpoint.desc = NULL;
10301030
}
10311031

1032-
dwc3_remove_requests(dwc, dep, -ECONNRESET);
1032+
dwc3_remove_requests(dwc, dep, -ESHUTDOWN);
10331033

10341034
dep->stream_capable = false;
10351035
dep->type = 0;

0 commit comments

Comments
 (0)