• Tony Lindgren's avatar
    musb_hdrc: Avoid host babble by checking tx fifo · 3f625d7f
    Tony Lindgren authored
    Running a tusb6010 system in host mode would fail with
    testusb -a -t12 -c1 most of the time with BABBLE errors.
    
    Turns out this was caused by incorrect handling of TX
    FIFONOTEMPTY, where the code did not wait for it to clear.
    
    This patch introduces musb_h_tx_flush_fifo(), and makes
    musb_host.c to use it.
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    3f625d7f
musb_host.c 59.1 KB