]> git.baikalelectronics.ru Git - kernel.git/commit
serial: exar: Fix initialization of EXAR registers for ports > 0
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 8 Feb 2017 16:09:04 +0000 (17:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:12:38 +0000 (15:12 +0100)
commitd27b2d40e8aa014fae966cfed7559dac7de349af
tree891e8c8161974a0f6a57ea46b151624fc5277b6a
parent219d657248f0450537ef214ebf6891f5677dfd34
serial: exar: Fix initialization of EXAR registers for ports > 0

So far, pci_xr17v35x_setup always initialized 8XMODE, FCTR & Co. for
port 0 because it used the address of that port instead of moving the
pointer according to the port number. Fix this and remove the unneeded
temporary ioremap by moving default_setup up and reusing the membase it
fills into the port structure.

Fixes: 7e31560af98d ("tty/8250 Add support for Commtech's Fastcom Async-335 and Fastcom Async-PCIe cards")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c