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
F161969756: D37185.id112345.diff
Wed, Jul 8, 11:53 AM
F161942810: D37185.id112316.diff
Wed, Jul 8, 5:20 AM
F161869546: D37185.id.diff
Tue, Jul 7, 2:21 PM
Unknown Object (File)
Thu, Jun 18, 12:41 PM
Unknown Object (File)
Wed, Jun 17, 2:37 PM
Unknown Object (File)
May 10 2026, 5:49 AM
Unknown Object (File)
Apr 21 2026, 8:03 AM
Unknown Object (File)
Apr 21 2026, 12:59 AM
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.