* [PATCH] serial: 8250: Fix initialisation of Quatech cards with the AMCC PCI chip
@ 2013-10-31 5:13 Jonathan Woithe
2013-12-09 6:03 ` [PATCH] [RESEND] " Jonathan Woithe
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Woithe @ 2013-10-31 5:13 UTC (permalink / raw)
To: linux-serial; +Cc: jwoithe
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)
---
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
index c810da7..710f6d7 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -1260,10 +1260,10 @@ static int pci_quatech_init(struct pci_dev *dev)
unsigned long base = pci_resource_start(dev, 0);
if (base) {
u32 tmp;
- outl(inl(base + 0x38), base + 0x38);
+ outl(inl(base + 0x38) | 0x00002000, base + 0x38);
tmp = inl(base + 0x3c);
outl(tmp | 0x01000000, base + 0x3c);
- outl(tmp, base + 0x3c);
+ outl(tmp &= ~0x01000000, base + 0x3c);
}
}
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] [RESEND] serial: 8250: Fix initialisation of Quatech cards with the AMCC PCI chip
2013-10-31 5:13 [PATCH] serial: 8250: Fix initialisation of Quatech cards with the AMCC PCI chip Jonathan Woithe
@ 2013-12-09 6:03 ` Jonathan Woithe
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Woithe @ 2013-12-09 6:03 UTC (permalink / raw)
To: linux-serial; +Cc: jwoithe
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)
---
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
index c810da7..710f6d7 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -1260,10 +1260,10 @@ static int pci_quatech_init(struct pci_dev *dev)
unsigned long base = pci_resource_start(dev, 0);
if (base) {
u32 tmp;
- outl(inl(base + 0x38), base + 0x38);
+ outl(inl(base + 0x38) | 0x00002000, base + 0x38);
tmp = inl(base + 0x3c);
outl(tmp | 0x01000000, base + 0x3c);
- outl(tmp, base + 0x3c);
+ outl(tmp &= ~0x01000000, base + 0x3c);
}
}
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-09 6:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-31 5:13 [PATCH] serial: 8250: Fix initialisation of Quatech cards with the AMCC PCI chip Jonathan Woithe
2013-12-09 6:03 ` [PATCH] [RESEND] " Jonathan Woithe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.