Skip to content
Commit 86e1740c authored by Robert Hancock's avatar Robert Hancock Committed by Carles Cufí
Browse files

serial: xilinx: uartlite: Fix infinite spin in xlnx_uartlite_fifo_read



The xlnx_uartlite_fifo_read function would spin indefinitely if there
was less data available in the RX FIFO than the size of the passed-in
buffer. This call is supposed to be non-blocking.

Fixed to break out of the loop if there are no more bytes left in the RX
FIFO.

Signed-off-by: default avatarRobert Hancock <robert.hancock@calian.com>
parent c18e7f3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment