diff options
author | David Engraf <[email protected]> | 2019-12-16 09:54:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-12-17 14:17:32 +0100 |
commit | cb47b9f8630ae3fa3f5fbd0c7003faba7abdf711 (patch) | |
tree | 8638b5510a73ecb2229404fea615a539a52a9292 /lib/mpi/mpi-mul.c | |
parent | fb2b90014d782d80d7ebf663e50f96d8c507a73c (diff) |
tty/serial: atmel: fix out of range clock divider handling
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 <[email protected]>
Acked-by: Ludovic Desroches <[email protected]>
Acked-by: Richard Genoud <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions