aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomonori Sakita <tomonori.sakita@sord.co.jp>2019-01-21 17:34:16 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-05 17:58:49 +0100
commit89d9a53346b20cceccb7c86253e186721ae50359 (patch)
treebe526217b5e0e7c24d7dbcb6bbdee7653abb1af3
parent1ed436cd1690215e9c7081e25935c398c7b9b099 (diff)
downloadlinux-yocto-89d9a53346b20cceccb7c86253e186721ae50359.tar.gz
linux-yocto-89d9a53346b20cceccb7c86253e186721ae50359.tar.bz2
linux-yocto-89d9a53346b20cceccb7c86253e186721ae50359.zip
serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling
[ Upstream commit 815d835b7ba46685c316b000013367dacb2b461b ] Using over-sampling ratio, lpuart can accept baud rate upto uartclk / 4. Signed-off-by: Tomonori Sakita <tomonori.sakita@sord.co.jp> Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/tty/serial/fsl_lpuart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index 7d030c2e42ff..50b6746a8b5d 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -1695,7 +1695,7 @@ lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
}
/* ask the core to calculate the divisor */
- baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
+ baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4);
spin_lock_irqsave(&sport->port.lock, flags);