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
Unknown Object (File)
Mon, Jan 6, 9:48 PM
Unknown Object (File)
Mon, Jan 6, 7:05 PM
Unknown Object (File)
Sun, Dec 29, 1:33 PM
Unknown Object (File)
Sat, Dec 28, 9:13 PM
Unknown Object (File)
Sat, Dec 28, 7:57 PM
Unknown Object (File)
Sat, Dec 28, 5:24 AM
Unknown Object (File)
Nov 1 2024, 9:35 PM
Unknown Object (File)
Nov 1 2024, 9:35 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.