]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: imx: clear Ageing Timer Interrupt in handler
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Thu, 28 May 2020 15:47:47 +0000 (17:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 May 2020 11:00:54 +0000 (13:00 +0200)
commit121f8f93227d6c426b819bc70e29b0a05e2dbeb8
tree10ab28dca098c45c305199690be84cb67bedd122
parent419d3ea9ab043c1e6822d5f9364991f8b648d14b
tty: serial: imx: clear Ageing Timer Interrupt in handler

The AGTIM flag must be cleared explicitly, otherwise the IRQ handler
will be called in an endless loop.

Fortunately, this issue currently doesn't affect mainline kernels in
practice, as the the RX FIFO trigger level is set to 1 in UFCR. When
setting the trigger level to a higher number, the issue is trivially
reproducible by any RX without DMA that doesn't fill the FIFO up to the
configured level.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Link: https://lore.kernel.org/r/20200528154747.14201-1-matthias.schiffer@ew.tq-group.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c