]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.4/serial-fsl_lpuart-fix-maximum-acceptable-baud-rate-w.patch
Linux 3.18.137
[thirdparty/kernel/stable-queue.git] / queue-4.4 / serial-fsl_lpuart-fix-maximum-acceptable-baud-rate-w.patch
1 From 70fdf74a8c3adc4e877a59284ecd9dd6cb640ae3 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
5 over-sampling
6
7 [ Upstream commit 815d835b7ba46685c316b000013367dacb2b461b ]
8
9 Using over-sampling ratio, lpuart can accept baud rate upto uartclk / 4.
10
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>
15 ---
16 drivers/tty/serial/fsl_lpuart.c | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
20 index 8b5ec9386f0f4..1544a7cc76ff8 100644
21 --- a/drivers/tty/serial/fsl_lpuart.c
22 +++ b/drivers/tty/serial/fsl_lpuart.c
23 @@ -1409,7 +1409,7 @@ lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
24 }
25
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);
29
30 spin_lock_irqsave(&sport->port.lock, flags);
31
32 --
33 2.19.1
34