]> git.ipfire.org Git - thirdparty/linux.git/commit
serial: 8250: 8250_omap: Disable RX interrupt after DMA enable
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 29 Oct 2020 05:19:30 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2020 16:12:48 +0000 (17:12 +0100)
commit439c7183e5b97952bba1747f5ffc4dea45a6a18b
tree36e0eb2f19e8271e962de480dcf82e63b2a00501
parent80f510f5fd078379b772f3b745c49e1db949bb43
serial: 8250: 8250_omap: Disable RX interrupt after DMA enable

UARTs on TI SoCs prior to J7200 don't provide independent control over
RX FIFO not empty interrupt (RHR_IT) and RX timeout interrupt.
Starting with J7200 SoC, its possible to disable RHR_IT independent of
RX timeout interrupt using bit 2 of IER2 register. So disable RHR_IT
once RX DMA is started so as to avoid spurious interrupt being raised
when data is in the RX FIFO but is yet to be drained by DMA (a known
errata in older SoCs).

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20201029051930.7097-1-vigneshr@ti.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c