linux_dsm_epyc7002/drivers/tty/serial/8250
James Hogan 4f56f3fdca 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>
2015-10-04 19:12:25 +01:00
..
8250_accent.c
8250_acorn.c
8250_boca.c
8250_core.c serial: don't register CIR serial ports 2015-10-04 17:23:52 +01:00
8250_dma.c serial: 8250_dma: don't bother DMA with small transfers 2015-02-02 10:11:26 -08:00
8250_dw.c serial: 8250_dw: don't set UPF_BOOT_AUTOCONF flag 2015-10-04 18:38:45 +01:00
8250_early.c serial: 8250: Add OF earlycon support 2015-10-04 17:49:27 +01:00
8250_em.c serial: 8250: remove the redundant include 2015-03-26 22:21:08 +01:00
8250_exar_st16c554.c
8250_fintek.c serial/8250_fintek: Support for any io address. 2015-07-23 15:14:42 -07:00
8250_fourport.c
8250_fsl.c serial: 8250: introduce up_to_u8250p() helper 2014-07-17 18:16:23 -07:00
8250_gsc.c parisc: Fix interrupt routing for C8000 serial ports 2013-07-31 23:42:32 +02:00
8250_hp300.c serial: 8250: remove the redundant include 2015-03-26 22:21:08 +01:00
8250_hub6.c
8250_ingenic.c serial: 8250_ingenic: Enable FIFO for Ingenic UARTs 2015-10-04 17:47:49 +01:00
8250_lpc18xx.c serial: 8250: add LPC18xx/43xx UART driver 2015-06-01 06:56:33 +09:00
8250_mtk.c tty: serial/8250: remove console dependency for mediatek 2015-05-24 13:06:09 -07:00
8250_omap.c serial: 8250_omap: check how many bytes were injected 2015-10-04 17:23:52 +01:00
8250_pci.c serial: 8250_pci: fix mode after S3/S4 resume for F81504/508/512 2015-08-05 12:24:27 -07:00
8250_pnp.c serial: 8250: bind to ALi Fast Infrared Controller (ALI5123) 2015-08-14 17:13:19 -07:00
8250_port.c serial: 8250: Tolerate clock variance for max baud rate 2015-10-04 19:12:25 +01:00
8250_uniphier.c serial: 8250_uniphier: call clk_disable_unprepare() on failure path 2015-08-03 15:51:19 -07:00
8250.h serial: 8250: move rx_running out of the bitfield 2015-08-14 17:19:50 -07:00
Kconfig serial: 8250: simplify ralink/alchemy register remap selection 2015-10-04 19:09:21 +01:00
Makefile serial: 8250: Split base port operations from universal driver 2015-07-23 17:43:01 -07:00
serial_cs.c tty: delete non-required instances of include <linux/init.h> 2014-01-07 17:05:21 -08:00