aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-iop32x
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-iop32x')
-rw-r--r--arch/arm/mach-iop32x/n2100.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c
index 92fa0c55443e..5f07344d96f3 100644
--- a/arch/arm/mach-iop32x/n2100.c
+++ b/arch/arm/mach-iop32x/n2100.c
@@ -121,6 +121,20 @@ static struct hw_pci n2100_pci __initdata = {
121 .map_irq = n2100_pci_map_irq, 121 .map_irq = n2100_pci_map_irq,
122}; 122};
123 123
124/*
125 * Both r8169 chips on the n2100 exhibit PCI parity problems. Set
126 * the ->broken_parity_status flag for both ports so that the r8169
127 * driver knows it should ignore error interrupts.
128 */
129static void n2100_fixup_r8169(struct pci_dev *dev)
130{
131 if (dev->bus->number == 0 &&
132 (dev->devfn == PCI_DEVFN(1, 0) ||
133 dev->devfn == PCI_DEVFN(2, 0)))
134 dev->broken_parity_status = 1;
135}
136DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_REALTEK, PCI_ANY_ID, n2100_fixup_r8169);
137
124static int __init n2100_pci_init(void) 138static int __init n2100_pci_init(void)
125{ 139{
126 if (machine_is_n2100()) 140 if (machine_is_n2100())