diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-24 09:27:48 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-24 15:16:55 +0100 |
commit | 0a73158341d5d3ef1e79e0d77a177121ef502930 (patch) | |
tree | 2dd075dca65ced40f0e1b7e08a23bc50b3c0edeb | |
parent | ece55933e0bd7db28b3d2e376b113c895153c4df (diff) | |
download | barebox-0a73158341d5d3ef1e79e0d77a177121ef502930.tar.gz |
usb: gadget: fastboot: Do not dequeue idle request
In fastboot_disable() all endpoints are disabled which will complete
all outstanding requests with -ESHUTDOWN. fastboot_unbind() is called
after that, so we do not need to deqeueue any requests there.
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20230324082748.987672-1-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/usb/gadget/function/f_fastboot.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_fastboot.c b/drivers/usb/gadget/function/f_fastboot.c index 4266b78b40..41450268fc 100644 --- a/drivers/usb/gadget/function/f_fastboot.c +++ b/drivers/usb/gadget/function/f_fastboot.c @@ -319,7 +319,6 @@ static void fastboot_unbind(struct usb_configuration *c, struct usb_function *f) { struct f_fastboot *f_fb = func_to_fastboot(f); - usb_ep_dequeue(f_fb->out_ep, f_fb->out_req); free(f_fb->out_req->buf); usb_ep_free_request(f_fb->out_ep, f_fb->out_req); f_fb->out_req = NULL; |