]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: 8250_pci: Correct uartclk for xr17v35x expansion chips
authorSoeren Grunewald <soeren.grunewald@desy.de>
Thu, 11 Jun 2015 07:25:05 +0000 (09:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 19:58:52 +0000 (11:58 -0800)
commit509d0000ca7179fcd797822d15a6fdd4c43bc2ab
treef9cf9abe1cfe4dc41e99507fba376b1a1cc84e94
parenta54480fb0a8bba7154f72da40fc8df509398f04a
serial: 8250_pci: Correct uartclk for xr17v35x expansion chips

commit 899f0c1c7dbcc487fdc8756a49ff70b1d5d75f89 upstream.

The internal clock of the master chip, which is usually 125MHz, is only half
(62.5MHz) for the slave chips. So we have to adjust the uartclk for all the
slave ports. Therefor we add a new function to determine if a slave chip is
present and update pci_xr17v35x_setup accordingly.

Signed-off-by: Soeren Grunewald <soeren.grunewald@desy.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c