]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_dw: Use serial_lsr_in() in dw8250_handle_irq()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 8 Jun 2022 09:54:30 +0000 (12:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:45:09 +0000 (13:45 +0200)
commit7895b0005f825d729ee65d27fd29bf40c3f23b2a
tree1b12931a1213f90fe6f6c9532cbb2d1ae2799c17
parent4d66fb086b8d241a1a5531f0462f5b7895abb5bb
serial: 8250_dw: Use serial_lsr_in() in dw8250_handle_irq()

dw8250_handle_irq() reads LSR under a few conditions, convert both to
use serial_lsr_in() in order to preserve LSR flags properly across
reads.

Fixes: 35e274c95116 ("serial: 8250_dw: Avoid "too much work" from bogus rx timeout interrupt")
Fixes: e780dc4fd71b ("serial: 8250: dw: Add support for DMA flow controlling devices")
Cc: Douglas Anderson <dianders@chromium.org>
Cc: Phil Edworthy <phil.edworthy@renesas.com>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220608095431.18376-6-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c