]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
serial: fsl_lpuart: specify transmit FIFO size for 32-bit variant
authorAtsushi Nemoto <atsushi.nemoto@sord.co.jp>
Mon, 21 Jan 2019 08:36:21 +0000 (17:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 08:51:10 +0000 (09:51 +0100)
The commit 4e8f24593709 ("tty: serial: fsl_lpuart: specify transmit
FIFO size") fixed lpuart_startup only.
Fix lpuart32_startup too.

Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c

index 241a48e5052c37106acc8f672c37834dd38a74c8..238998620349eecd8f36febd18e93b675d4b634c 100644 (file)
@@ -1334,6 +1334,8 @@ static int lpuart32_startup(struct uart_port *port)
        sport->txfifo_size = 0x1 << (((temp >> UARTFIFO_TXSIZE_OFF) &
                UARTFIFO_FIFOSIZE_MASK) - 1);
 
+       sport->port.fifosize = sport->txfifo_size;
+
        sport->rxfifo_size = 0x1 << (((temp >> UARTFIFO_RXSIZE_OFF) &
                UARTFIFO_FIFOSIZE_MASK) - 1);