Skip to content
Commit 66b5847b authored by Dario Binacchi's avatar Dario Binacchi Committed by Marek Vasut
Browse files

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: 5f7e01e9 ("usb: gadget: fastboot: detach usb on reboot commands")
Suggested-by: default avatarMichael Trimarchi <michael@amarulasolutions.com>
Co-developed-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: default avatarDario Binacchi <dario.binacchi@amarulasolutions.com>
parent 5454dea3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment