diff options
author | David Engraf <david.engraf@sysgo.com> | 2019-12-16 11:54:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-31 18:46:11 +0300 |
commit | 3a2f322a2bf1b03be20f3b972bb1fe464dfb3eb7 (patch) | |
tree | 803de560a89ab2bd499504b2ce3a0859846c20ad /drivers/tty/serial/msm_serial.c | |
parent | 385fc1fb7545ea99a8aa1094cf527d909b43a705 (diff) | |
download | linux-3a2f322a2bf1b03be20f3b972bb1fe464dfb3eb7.tar.xz |
tty/serial: atmel: fix out of range clock divider handling
commit cb47b9f8630ae3fa3f5fbd0c7003faba7abdf711 upstream.
Use MCK_DIV8 when the clock divider is > 65535. Unfortunately the mode
register was already written thus the clock selection is ignored.
Fix by doing the baud rate calulation before setting the mode.
Fixes: 5bf5635ac170 ("tty/serial: atmel: add fractional baud rate support")
Signed-off-by: David Engraf <david.engraf@sysgo.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Richard Genoud <richard.genoud@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191216085403.17050-1-david.engraf@sysgo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/msm_serial.c')
0 files changed, 0 insertions, 0 deletions