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)
commit5aa387c152fce7ae5cb29f2b191a1570cd04db5f
tree50806259127c6f3bdb1f49fdce62fcd0710c6f97
parent1db894ecfa73759b1fde359562b9b4ef0e66e23d
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