aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/fsl_lpuart.c
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-01-22 09:32:08 +0100
commit815d835b7ba46685c316b000013367dacb2b461b (patch)
tree901f1e7e6ba359b0b3bcf6491f6aeca75a1b1d5f /drivers/tty/serial/fsl_lpuart.c
parenttty: serial: qcom_geni_serial: Allow mctrl when flow control is disabled (diff)
downloadlinux-dev-815d835b7ba46685c316b000013367dacb2b461b.tar.xz
linux-dev-815d835b7ba46685c316b000013367dacb2b461b.zip
serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling
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>
Diffstat (limited to 'drivers/tty/serial/fsl_lpuart.c')
-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 241a48e5052c..debdd1b9e01a 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -1697,7 +1697,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);