]> git.ipfire.org Git - people/ms/u-boot.git/commit
smsc95xx: Use zero length packets when RX fifo is empty
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Tue, 8 Sep 2015 03:12:00 +0000 (05:12 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 29 Oct 2015 19:05:46 +0000 (14:05 -0500)
commit4a4ced0b6fde31fe28395e710bcee36f82f29730
tree43f495ba6b15bc117e9a4ed6fefd593e1de2e1e0
parent774c3e05ec0a9c298e14681fb662c392842c2ced
smsc95xx: Use zero length packets when RX fifo is empty

Using NAKs on empty RX fifo for bulk in transfers is the right choice
for a interrupt driven model, but U-Boot uses polling and expects an
immediate answer if there is no incoming packet. Using ZLP Bulk In Response
(BIR) mode avoids unexpected timeouts in the host controller driver.

As ZLP mode is reset default, there is no need to set it.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/usb/eth/smsc95xx.c