HomeFreeBSD

ns8250: Fix sense of LSR_TEMT FCR check

Description

ns8250: Fix sense of LSR_TEMT FCR check

When flushing the UART, we need to drain manually if LSR_TEMT is
*not* asserted, aka. if the transmit FIFO is not empty.

Reported by: void <void@f-m.fm>
Fixes: c4b68e7e53bb "ns8250: Check if flush via FCR succeeded"
Differential Revision: https://reviews.freebsd.org/D37185

Details

Provenance
cpercivaAuthored on Oct 28 2022, 4:42 AM
Differential Revision
D37185: ns8250: Fix sense of LSR_TEMT FCR check
Parents
rGba9f71ddeca8: sys/modules: simplify a little by moving syscons to x86 only
Branches
Unknown
Tags
Unknown