]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Revert "serial: 8250: Don't service RX FIFO if interrupts are disabled"
authorOliver Barta <o.barta89@gmail.com>
Wed, 19 Jun 2019 08:16:39 +0000 (10:16 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit3429140f13ce14984ba712a72d55098aab428df9
tree71ffa9bfc94adb3d6df2ed982ffe46e727a697de
parent03015de1ad5a27cc9ea57bc6b5df9fe3d5b899c1
Revert "serial: 8250: Don't service RX FIFO if interrupts are disabled"

BugLink: https://bugs.launchpad.net/bugs/1839036
commit 3f2640ed7be838c3f05c0d2b0f7c7508e7431e48 upstream.

This reverts commit 2e9fe539108320820016f78ca7704a7342788380.

Reading LSR unconditionally but processing the error flags only if
UART_IIR_RDI bit was set before in IIR may lead to a loss of transmission
error information on UARTs where the transmission error flags are cleared
by a read of LSR. Information are lost in case an error is detected right
before the read of LSR while processing e.g. an UART_IIR_THRI interrupt.

Signed-off-by: Oliver Barta <o.barta89@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Fixes: 2e9fe5391083 ("serial: 8250: Don't service RX FIFO if interrupts are disabled")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/serial/8250/8250_port.c