u-boot/drivers/usb
Alberto Panizzo cad66e324d usb: rockchip: fix command failed on host side due to missing data
Two consecutive rockusb_tx_write without waiting for request complete
do results in transfer reset of first request and thus no or incomplete
data transfer. This because rockusb_tx_write do use just one USB request
to keep serialization.

So calls like:
rockusb_tx_write_str(emmc_id);
rockusb_tx_write_csw(cbw->tag, cbw->data_transfer_length, CSW_GOOD);

was succeeding only when DEBUG was defined because the time spent
printing debug info was enough for transfer to complete.

This patch fixes the issue adding a simple request complete handler
called rockusb_tx_write_csw to be set as complete handler of in_req
when sending back simple payload + CSW replies to commands.

This new handler will always send CSW_GOOD replies because in case
of error the command callback itself must send back an error CSW as
unique reply to command.

This patch fixes execution of:
$ rkdeveloptool rfi
when DEBUG is not defined.

Signed-off-by: Alberto Panizzo <alberto@amarulasolutions.com>
2018-08-08 22:22:07 +02:00
..
common usb: common: add support to get maximum speed from dt 2018-05-18 13:23:10 +02:00
dwc3 bug.h: introduce WARN_ONCE 2018-06-07 17:08:06 -04:00
emul SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
eth dwc2 USB controller hangs with lan78xx 2018-06-27 22:21:25 -04:00
gadget usb: rockchip: fix command failed on host side due to missing data 2018-08-08 22:22:07 +02:00
host sunxi: A64: OHCI: prevent turning off shared USB clock 2018-07-05 11:25:50 +02:00
musb SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
musb-new bug.h: introduce WARN_ONCE 2018-06-07 17:08:06 -04:00
phy SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ulpi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig usb: kbd: select SYS_STDIO_DEREGISTER 2018-02-21 20:28:15 +01:00