1 From 2a12ef5899be5646be02b1dbad8f6e21e3b0db05 Mon Sep 17 00:00:00 2001
2 From: Tomonori Sakita <tomonori.sakita@sord.co.jp>
3 Date: Mon, 21 Jan 2019 17:34:16 +0900
4 Subject: serial: fsl_lpuart: fix maximum acceptable baud rate with
7 [ Upstream commit 815d835b7ba46685c316b000013367dacb2b461b ]
9 Using over-sampling ratio, lpuart can accept baud rate upto uartclk / 4.
11 Signed-off-by: Tomonori Sakita <tomonori.sakita@sord.co.jp>
12 Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 Signed-off-by: Sasha Levin <sashal@kernel.org>
16 drivers/tty/serial/fsl_lpuart.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
19 diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
20 index 716c33b2a11cb..32a473f9d1d38 100644
21 --- a/drivers/tty/serial/fsl_lpuart.c
22 +++ b/drivers/tty/serial/fsl_lpuart.c
23 @@ -1701,7 +1701,7 @@ lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
26 /* ask the core to calculate the divisor */
27 - baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
28 + baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4);
30 spin_lock_irqsave(&sport->port.lock, flags);