HomeFreeBSD

ns8250: use LSR_THRE instead of LSR_TEMT for checking tx flush

Description

ns8250: use LSR_THRE instead of LSR_TEMT for checking tx flush

LSR_TEMT bit is set if both transmit hold and shift registers are
empty, but the flush command flushes only the hold register.

While here, update the diagnostic message to report which registers
could not be flushed.

MFC after: 2 weeks

Details

Provenance
avgAuthored on Nov 10 2024, 11:15 AM
Parents
rG964b0ece795a: makefs: Add tests for the -T flag
Branches
Unknown
Tags
Unknown