]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: Fix lost rx state
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 22:39:32 +0000 (14:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 22:07:04 +0000 (14:07 -0800)
commitc6bca6eef9b528ef8538491b1ff3b06d0abee64a
tree004906b39e6a6c15605246b0687a835945691ab8
parente5118dc04112c7a59b52a5cd40fc48196c4f5b87
serial: 8250: Fix lost rx state

When max_count is reached, the rx loop exits. However, UART_LSR has
already been read so those char flags are lost, and subsequent rx
status will be for the wrong byte until the rx fifo drains.

Reported-by: George Spelvin <linux@horizon.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c