diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-10-05 13:32:08 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-11-04 12:30:28 +0000 |
commit | 3af08bd7adb09b0806c51c06b87db08cc7075568 (patch) | |
tree | 69b680bace06bb2127a69e883312dedcfb343544 /drivers/tty/serial/kgdb_nmi.c | |
parent | 2405464083e152f88bb58b7108a9e50ca362178c (diff) |
SERIAL: omap: fix hardware assisted flow control
When the UART device has hardware flow control enabled, it ignores the
MCR RTS bit in the MCR register, and keeps RTS asserted as long as we
continue to read characters from the UART receiver FIFO. This means
that when the TTY buffers become full, the UART doesn't tell the remote
end to stop sending, which causes the TTY layer to start dropping
characters.
A similar problem exists with software flow control. We need the FIFO
register to fill when software flow control is enabled to provoke the
UART to send the XOFF character.
Fix this by implementing the throttle/unthrottle callbacks, and use
these to disable receiver interrupts. This in turn means that the UART
FIFO will fill, which will then cause the UART's hardware to deassert
the RTS signal and/or send the XOFF character, stopping the remote end.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/tty/serial/kgdb_nmi.c')
0 files changed, 0 insertions, 0 deletions