summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/sc16is7xx.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2015-09-25 19:36:10 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 18:12:25 (GMT)
commit4f56f3fdca43c9a18339b6e0c3b1aa2f57f6d0b0 (patch)
tree4cc3ba6f84127d0b79630f48eb24d47f06d4c648 /drivers/tty/serial/sc16is7xx.c
parentd215d80957ce98c318064c249ad0b7800c63a19d (diff)
downloadlinux-4f56f3fdca43c9a18339b6e0c3b1aa2f57f6d0b0.tar.xz
serial: 8250: Tolerate clock variance for max baud rate
When the UART clock is set slightly under 1.8432MHz, the 8250 driver core doesn't permit the 115200 baud rate since it calculates the maximum frequency to pass to uart_get_baud_rate by simply dividing the uart clock by 16 which yields a value slightly under 115200, even though the frequency is close enough for the UART to operate reliably. Therefore add some tolerance in the calculation of the maximum baud rate. 1% tolerance allows for marginally slower uart clk than nominal without introducing transmission errors. Signed-off-by: James Hogan <james.hogan@imgtec.com> [pjh: Forward-port & refactor original patch; change tolerance to 1%] Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sc16is7xx.c')
0 files changed, 0 insertions, 0 deletions