On Sun, 07 Jun 2026 21:03:43 +0530, Naveen Kumar Chaudhary wrote:

> ca_serial_getc() reads from the URX_DATA register unconditionally
> without first checking whether the RX FIFO contains valid data. When
> the FIFO is empty, this returns whatever stale value is in the
> register, which the DM serial framework interprets as a valid
> character.
> 
> The DM serial framework expects getc() to return -EAGAIN when no data
> is available, so it can handle retries and call schedule() to service
> the watchdog between attempts.
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] serial: cortina: check RX FIFO status before reading data
      commit: 0bef438428ca0118da2ebb44493d5d2090cb05a2
-- 
Tom


Reply via email to