diff options
author | Kuo-Jung Su <dantesu@faraday-tech.com> | 2013-12-20 12:33:00 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-01-13 12:15:13 +0100 |
commit | dcad280056b656896a18c5955d8facc236a1bed7 (patch) | |
tree | 8bacb6f97146c51f587efb9885f19434b8733ebc /rules.mk | |
parent | bd5e301d35621f2b00e0ecd77464c6c0e967fdbb (diff) | |
download | u-boot-imx-dcad280056b656896a18c5955d8facc236a1bed7.zip u-boot-imx-dcad280056b656896a18c5955d8facc236a1bed7.tar.gz u-boot-imx-dcad280056b656896a18c5955d8facc236a1bed7.tar.bz2 |
usb: gadget: fotg210: EP0 fifo empty indication is non-reliable
The fifo size of ep0 is 64 bytes, and if the packet size grater than
64 bytes, the driver would have to fill up the fifo multiple times,
and before filling up the fifo, the driver should make sure the fifo
is empty by checking fifo empty indication.
However there is a hardware bug that the fifo empty indication is
somehow a bit earlier than fifo reset. So if I don't add an extra
delay here, the data might be corrupted. (i.e., 1 byte missing)
After a couple of tests, it truns out that 1 usec is good enough.
This workaround should be applied to all hardware revisions.
Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
CC: Marek Vasut <marex@denx.de>
Diffstat (limited to 'rules.mk')
0 files changed, 0 insertions, 0 deletions