Page MenuHomeFreeBSD

ns8250: Fix sense of LSR_TEMT FCR check
ClosedPublic

Authored by cperciva on Oct 28 2022, 4:45 AM.
Tags
None
Referenced Files
F153414345: D37185.id112345.diff
Tue, Apr 21, 12:59 AM
Unknown Object (File)
Wed, Apr 15, 10:38 AM
Unknown Object (File)
Tue, Apr 14, 2:18 AM
Unknown Object (File)
Sun, Apr 12, 3:57 AM
Unknown Object (File)
Sun, Apr 5, 4:53 PM
Unknown Object (File)
Fri, Mar 27, 10:04 AM
Unknown Object (File)
Mar 14 2026, 10:06 PM
Unknown Object (File)
Mar 9 2026, 7:18 PM
Subscribers
None

Details

Summary

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"

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48064
Build 44951: arc lint + arc unit

Event Timeline

cperciva created this revision.

Tested by "void", confirmed that this eliminates the warning from his bhyve VMs.

This revision was not accepted when it landed; it landed in state Needs Review.Oct 28 2022, 7:21 PM
This revision was automatically updated to reflect the committed changes.