提交 9c5320f8 编写于 作者: J Jonathan Woithe 提交者: Greg Kroah-Hartman

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: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e12348c6
...@@ -1259,10 +1259,10 @@ static int pci_quatech_init(struct pci_dev *dev) ...@@ -1259,10 +1259,10 @@ static int pci_quatech_init(struct pci_dev *dev)
unsigned long base = pci_resource_start(dev, 0); unsigned long base = pci_resource_start(dev, 0);
if (base) { if (base) {
u32 tmp; u32 tmp;
outl(inl(base + 0x38), base + 0x38); outl(inl(base + 0x38) | 0x00002000, base + 0x38);
tmp = inl(base + 0x3c); tmp = inl(base + 0x3c);
outl(tmp | 0x01000000, base + 0x3c); outl(tmp | 0x01000000, base + 0x3c);
outl(tmp, base + 0x3c); outl(tmp &= ~0x01000000, base + 0x3c);
} }
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册