Page MenuHomeFreeBSD

D37185.diff
No OneTemporary

D37185.diff

diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c
--- a/sys/dev/uart/uart_dev_ns8250.c
+++ b/sys/dev/uart/uart_dev_ns8250.c
@@ -232,7 +232,7 @@
* https://github.com/rust-vmm/vm-superio/issues/83
*/
lsr = uart_getreg(bas, REG_LSR);
- if ((lsr & LSR_TEMT) && (what & UART_FLUSH_TRANSMITTER))
+ if (((lsr & LSR_TEMT) == 0) && (what & UART_FLUSH_TRANSMITTER))
drain |= UART_DRAIN_TRANSMITTER;
if ((lsr & LSR_RXRDY) && (what & UART_FLUSH_RECEIVER))
drain |= UART_DRAIN_RECEIVER;

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 29, 9:13 PM (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15627931
Default Alt Text
D37185.diff (518 B)

Event Timeline