]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tty: xilinx_uartps: Initialise the read_status_mask
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Fri, 29 Jul 2022 11:47:44 +0000 (17:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 11:25:04 +0000 (13:25 +0200)
Initialise the read status in probe.
It will be checked in the isr so to have the default values lets initialise
in probe.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/20220729114748.18332-4-shubhrajyoti.datta@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c

index 8d2c2171886907d0c749d87386e7f421252aa55d..94e1bc6944572df66aa1de0db96dd8520febc6e5 100644 (file)
@@ -1559,6 +1559,8 @@ static int cdns_uart_probe(struct platform_device *pdev)
        port->dev = &pdev->dev;
        port->uartclk = clk_get_rate(cdns_uart_data->uartclk);
        port->private_data = cdns_uart_data;
+       port->read_status_mask = CDNS_UART_IXR_TXEMPTY | CDNS_UART_IXR_RXTRIG |
+                       CDNS_UART_IXR_OVERRUN | CDNS_UART_IXR_TOUT;
        cdns_uart_data->port = port;
        platform_set_drvdata(pdev, port);