]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tty: xilinx_uartps: Fix the ignore_status
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Fri, 29 Jul 2022 11:47:45 +0000 (17:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:36 +0000 (13:22 +0200)
[ Upstream commit d4b05c61b2ffb01ab818de9a22257e535ce96fa3 ]

Currently the ignore_status is not considered in the isr.
Add a check to add the ignore_status.

Fixes: 8812c920f133 ("tty/serial: add support for Xilinx PS UART")
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20220729114748.18332-5-shubhrajyoti.datta@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/xilinx_uartps.c

index a1409251fbcc30f186133e0174d4add85e4b08cb..6842999072c5935cad29f6c12f47f96e14d38434 100644 (file)
@@ -369,6 +369,8 @@ static irqreturn_t cdns_uart_isr(int irq, void *dev_id)
                isrstatus &= ~CDNS_UART_IXR_TXEMPTY;
        }
 
+       isrstatus &= port->read_status_mask;
+       isrstatus &= ~port->ignore_status_mask;
        /*
         * Skip RX processing if RX is disabled as RXEMPTY will never be set
         * as read bytes will not be removed from the FIFO.