summaryrefslogtreecommitdiff
path: root/doc/develop/bootstd
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-09-07 21:16:27 +0200
committerMarek Vasut <[email protected]>2025-10-17 21:53:52 +0200
commit92b779cd9f1493dad467b08e94c916b66270c47c (patch)
tree0c2f9164fa3ebd6ed91ae6ec415f117861618427 /doc/develop/bootstd
parenta1a898588c803da43d625e5ca25cb4c78f80c7f3 (diff)
serial: sh: Handle HSCIF RX FIFO overflow
The HSCIF RX FIFO may overflow when data are streaming from remote end into the HSCIF while U-Boot is still starting up. In that case, HSFSR bit RDF is set, but HSFDR field R is zero. This confuses .tstc callback into considering RX FIFO to be empty, which leads to .getc to be never invoked, even when user attempts to pass more input onto the command line. Fix this by considering the RDF flag in serial_rx_fifo_level(), which is called from .tstc in case of no errors. If RDF flag is set, trigger the .getc callback and let it clear the RX FIFO. Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'doc/develop/bootstd')
0 files changed, 0 insertions, 0 deletions