]> 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>
Tue, 30 Aug 2022 11:25:48 +0000 (13:25 +0200)
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>
drivers/tty/serial/xilinx_uartps.c

index 94e1bc6944572df66aa1de0db96dd8520febc6e5..ae99e1164f0c46e0925d0f87d4b9e8e08aab95aa 100644 (file)
@@ -361,6 +361,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.