]> git.baikalelectronics.ru Git - kernel.git/commit
tty: vt8500_serial: explicitly calculate base baud rate
authorAlexey Charkov <alchark@gmail.com>
Sat, 6 Sep 2014 17:21:14 +0000 (21:21 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:29:36 +0000 (16:29 -0700)
commit229806855612757bfc913868fa2021460bc288e4
tree50806259127c6f3bdb1f49fdce62fcd0710c6f97
parenta703a0bfd4de57dcee7afdbbf57ea58e105a7668
tty: vt8500_serial: explicitly calculate base baud rate

Current code relies on the UART clock pre-divisor to be already
configured in the baud rate register. Calculate it in the driver
and set explicitly instead, also return the "real" effective baud
rate, which is generally slightly different from the requested value.

While at this, also ensure that break signal timing is updated when
baud rate changes.

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/vt8500_serial.c