]> 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)
commitf6dc80bf0f93a04d343510da317673de84106da6
tree004906b39e6a6c15605246b0687a835945691ab8
parent30c8fbd67fa0626c901f14cc6dec5b59c1d9a039
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