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