]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: meson: Use DIV_ROUND_CLOSEST to calculate baud rates
authorYu Tu <yu.tu@amlogic.com>
Thu, 7 Apr 2022 08:13:53 +0000 (16:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 09:28:10 +0000 (11:28 +0200)
commit76c392041f1161ba690e09ed1cfaa869c99e52e7
treea576769b69462d0428bb1bf09eb368c23de13511
parent6276b3787aa3a8bb94f4cfb15c0d00e17afca077
tty: serial: meson: Use DIV_ROUND_CLOSEST to calculate baud rates

Due to chip process differences, chip designers recommend using baud
rates as close to and larger as possible in order to reduce clock
errors.

Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220407081355.13602-2-yu.tu@amlogic.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/meson_uart.c