serial: Fix io address assign flow with Fintek PCI-to-UART Product
authorPeter Hung <hpeter@gmail.com>
Wed, 19 Nov 2014 05:22:27 +0000 (13:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 01:06:39 +0000 (17:06 -0800)
commitcb8ee9f08c4abfd8744eabffc467c06795c835d9
tree827e0e0dec89521d40bf3f540401e2773c434779
parent2b310ec7934f69c6e9a49dd675f413e112b82e5c
serial: Fix io address assign flow with Fintek PCI-to-UART Product

The original driver fixed the io address with 0xe000+idx*8,
but real io address assigned from BIOS is dynamically from
read PCI configure space 0x24, 0x20, 0x1c.

The Fintek F81504/F81508/F81512 maybe malfunction without
this patch and malfunction surely when more then 1 PCI card.

Signed-off-by: Peter Hung <hpeter+linux_kernel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c