]>
Commit | Line | Data |
---|---|---|
a9593ee3 SL |
1 | From 883c417ee8888df416089f1136ea330bb9d15a41 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 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 | -- | |
33 | 2.19.1 | |
34 |