diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-20 15:43:32 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-20 16:05:11 +0100 |
commit | 84aacbded15109132ee49a77250c475ccf0a1a18 (patch) | |
tree | 97550fb5a465b8ea2c82d180122367afc9995614 /drivers/usb/gadget/serial.c | |
parent | 90d152cd026d18dabeb53ae471b8056730b3e656 (diff) | |
download | barebox-84aacbded15109132ee49a77250c475ccf0a1a18.tar.gz |
usb: gadget: fastboot: Allocate IN requests when needed
fastboot_download_finished() calls fastboot_tx_print() two times in a
row and waits for completion in between. Additionally this is called
from the completion function from another request. This seems to work
for example on the fsl_udc driver, but leads to problems on the DWC3
controller. Instead of re-using the same request over and over again,
just allocate a new request when needed. This way we no longer have
to poll for its completion before starting a new request.
While fixing fastboot on the DWC3 controller this also makes the
lifetime of a request clearer.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/gadget/serial.c')
0 files changed, 0 insertions, 0 deletions