]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.9.162/serial-fsl_lpuart-fix-maximum-acceptable-baud-rate-w.patch
Linux 4.9.162
[thirdparty/kernel/stable-queue.git] / releases / 4.9.162 / serial-fsl_lpuart-fix-maximum-acceptable-baud-rate-w.patch
CommitLineData
a9593ee3
SL
1From 883c417ee8888df416089f1136ea330bb9d15a41 Mon Sep 17 00:00:00 2001
2From: Tomonori Sakita <tomonori.sakita@sord.co.jp>
3Date: Mon, 21 Jan 2019 17:34:16 +0900
4Subject: serial: fsl_lpuart: fix maximum acceptable baud rate with
5 over-sampling
6
7[ Upstream commit 815d835b7ba46685c316b000013367dacb2b461b ]
8
9Using over-sampling ratio, lpuart can accept baud rate upto uartclk / 4.
10
11Signed-off-by: Tomonori Sakita <tomonori.sakita@sord.co.jp>
12Signed-off-by: Atsushi Nemoto <atsushi.nemoto@sord.co.jp>
13Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14Signed-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
19diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
20index 5c471c3481bdf..800996522fdc2 100644
21--- a/drivers/tty/serial/fsl_lpuart.c
22+++ b/drivers/tty/serial/fsl_lpuart.c
23@@ -1494,7 +1494,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--
332.19.1
34