From: Shubhrajyoti Datta Date: Fri, 29 Jul 2022 11:47:45 +0000 (+0530) Subject: tty: xilinx_uartps: Fix the ignore_status X-Git-Tag: baikal/mips/sdk6.1~4689^2~100 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=d4b05c61b2ffb01ab818de9a22257e535ce96fa3;p=kernel.git tty: xilinx_uartps: Fix the ignore_status 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 Link: https://lore.kernel.org/r/20220729114748.18332-5-shubhrajyoti.datta@xilinx.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 94e1bc6944572..ae99e1164f0c4 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -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.