]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mvebu-uart: fix calculation of clock divisor
authorPali Rohár <pali@kernel.org>
Thu, 24 Jun 2021 22:49:00 +0000 (00:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:53:06 +0000 (16:53 +0200)
commitd2290ccef168d7f76dee380ac6ef86285450ebb1
tree5aa468fb60952f5d5e7706d675a2bfc61cf020a9
parent5cbcb1bf13dad9564f403252318547af0a0cee5e
serial: mvebu-uart: fix calculation of clock divisor

commit 9078204ca5c33ba20443a8623a41a68a9995a70d upstream.

The clock divisor should be rounded to the closest value.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: db4ef1010c48 ("serial: mvebu-uart: add function to change baudrate")
Cc: stable@vger.kernel.org # 83363730a007 ("serial: mvebu-uart: clarify the baud rate derivation")
Link: https://lore.kernel.org/r/20210624224909.6350-2-pali@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c