UART NS16550 Underflow Issue During Clearing Port #34234
Labels
area: UART
Universal Asynchronous Receiver-Transmitter
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
During UART initialization, the CPU reads the RDR register to clear the UART port, the Synopsys UART IP reports a buffer under flow error.
To Reproduce
We have this issue on Synopsys UART IP. Not sure if this issue can be reproduced on other UART IPs that are NS16550 compatible.
Expected behavior
During the UART initialization, when the CPU reads the RDR register to clear the port, the UART should NOT reports a buffer under flow error.
Impact
We have fixed this issue with minor changes to "uart_ns16550.c"
Before clear the port, we just need to set DLAB to 1. After clear the port, we reset DLAB to 0.
Logs and console output
UART_0 Error[Buffer Underflow] RBR doesn't contains the valid data.
Environment (please complete the following information):
Additional context
We have fixed this issue. Please help merge the above patch to the main branch. Thanks.
The text was updated successfully, but these errors were encountered: