]> git.karo-electronics.de Git - linux-beck.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)
commitd22f8f10683c8c0f2675d9fd411a06facaf07c1b
tree004906b39e6a6c15605246b0687a835945691ab8
parent3f6b3ce071d3a3632c82b53077d21f5beab3a4aa
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