diff options
author | Dario Binacchi <dario.binacchi@amarulasolutions.com> | 2023-01-07 17:48:07 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2023-01-14 14:10:30 +0100 |
commit | 66b5847b30a94487b6a540736dc4b10422d71294 (patch) | |
tree | aeedad0440a0a618eba75782b65a721fba79a31c /lib/zstd/zstd_internal.h | |
parent | 5454dea3137da465549cb08d668936552f28d0aa (diff) |
usb: gadget: fastboot: detach usb just before rebooting
The patch fixes the following error when updating a BSH SMM S2 board:
3:72>Start Cmd:FB[-t 8000]: ucmd nand write ${loadaddr} nanddtb ${filesize}
3:72>Okay (0.023s)
3:72>Start Cmd:FB: reboot
3:72>Fail Bulk(R):LIBUSB_ERROR_IO(0s)
The "fastboot reboot" command detaches the USB when it still needs to be
used. So let's detach the USB just before the reset.
CC: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Fixes: 5f7e01e9d5d800 ("usb: gadget: fastboot: detach usb on reboot commands")
Suggested-by: Michael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Diffstat (limited to 'lib/zstd/zstd_internal.h')
0 files changed, 0 insertions, 0 deletions