diff options
author | Atsushi Nemoto <atsushi.nemoto@sord.co.jp> | 2019-01-21 11:36:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 11:51:10 +0300 |
commit | b0b2735a2ba24111a2331b85169cc4cc8e06ae36 (patch) | |
tree | a904674a6a41e65f656d1eb001ac1653b379add4 /drivers/tty | |
parent | 04afcd3aaf3389cc258044350e4daac2410164d8 (diff) | |
download | linux-b0b2735a2ba24111a2331b85169cc4cc8e06ae36.tar.xz |
serial: fsl_lpuart: specify transmit FIFO size for 32-bit variant
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/fsl_lpuart.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 241a48e5052c..238998620349 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -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); |