Skip to content
Snippets Groups Projects
Commit dcad2800 authored by Kuo-Jung Su's avatar Kuo-Jung Su Committed by Marek Vasut
Browse files

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: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
CC: Marek Vasut <marex@denx.de>
parent bd5e301d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment