aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250
diff options
context:
space:
mode:
authorJonathan Woithe <jwoithe@just42.net>2013-12-09 01:03:08 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-19 13:21:09 -0500
commit9c5320f8d7d9a2cf623e65d50e1113f34d9b9eb1 (patch)
tree168694130bf55e7f88f10ae7108f7b261c5ae919 /drivers/tty/serial/8250
parente12348c6d0f720f0f8d665847057b5752e563982 (diff)
serial: 8250: Fix initialisation of Quatech cards with the AMCC PCI chip
Fix the initialisation of older Quatech serial cards which are fitted with the AMCC PCI Matchmaker interface chip. Signed-off-by: Jonathan Woithe (jwoithe@just42.net) Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r--drivers/tty/serial/8250/8250_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
index 4697a514b80a..6063d1512429 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -1259,10 +1259,10 @@ static int pci_quatech_init(struct pci_dev *dev)
1259 unsigned long base = pci_resource_start(dev, 0); 1259 unsigned long base = pci_resource_start(dev, 0);
1260 if (base) { 1260 if (base) {
1261 u32 tmp; 1261 u32 tmp;
1262 outl(inl(base + 0x38), base + 0x38); 1262 outl(inl(base + 0x38) | 0x00002000, base + 0x38);
1263 tmp = inl(base + 0x3c); 1263 tmp = inl(base + 0x3c);
1264 outl(tmp | 0x01000000, base + 0x3c); 1264 outl(tmp | 0x01000000, base + 0x3c);
1265 outl(tmp, base + 0x3c); 1265 outl(tmp &= ~0x01000000, base + 0x3c);
1266 } 1266 }
1267 } 1267 }
1268 return 0; 1268 return 0;