summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/f_acm.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-03-20 15:43:32 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-03-20 16:05:11 +0100
commit84aacbded15109132ee49a77250c475ccf0a1a18 (patch)
tree97550fb5a465b8ea2c82d180122367afc9995614 /drivers/usb/gadget/f_acm.c
parent90d152cd026d18dabeb53ae471b8056730b3e656 (diff)
downloadbarebox-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/f_acm.c')
0 files changed, 0 insertions, 0 deletions