David Engraf cb47b9f863 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 <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>
2019-12-17 14:17:32 +01:00
..
2019-12-03 14:09:14 -08:00
2017-11-15 11:36:08 -08:00
2019-12-03 14:09:14 -08:00
2017-11-21 15:57:07 -08:00
2019-04-21 23:20:08 +02:00
2019-10-27 18:54:13 +01:00
2018-06-12 16:19:22 -07:00
2018-12-28 20:33:54 -08:00