]> git.baikalelectronics.ru Git - kernel.git/commit
tty/serial: atmel: fix fractional baud rate computation
authorAlexey Starikovskiy <aystarik@gmail.com>
Wed, 21 Sep 2016 10:44:14 +0000 (12:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 10:54:03 +0000 (12:54 +0200)
commit74da5b7ec637a037a5f4503f216eb229d0e76dfb
tree7d75168490b71e02d839a8f56446238aead9f083
parent14c0d53badfdfb4ae0182a05863bf91b745221f9
tty/serial: atmel: fix fractional baud rate computation

The problem with previous code was it rounded values in wrong
place and produced wrong baud rate in some cases.

Signed-off-by: Alexey Starikovskiy <aystarik@gmail.com>
[nicolas.ferre@atmel.com: port to newer kernel and add commit log]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
include/linux/atmel_serial.h