Author: tbm Date: Mon Feb 5 14:56:27 2007 New Revision: 8266 Added: dists/trunk/linux-2.6/debian/patches/bugfix/arm/n2100-r8169-parity.patch Modified: dists/trunk/linux-2.6/debian/patches/series/1~experimental.1 Log: add the n2100 r8169 parity patch
Added: dists/trunk/linux-2.6/debian/patches/bugfix/arm/n2100-r8169-parity.patch ============================================================================== --- (empty file) +++ dists/trunk/linux-2.6/debian/patches/bugfix/arm/n2100-r8169-parity.patch Mon Feb 5 14:56:27 2007 @@ -0,0 +1,39 @@ +http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=4058/1 + +From: Lennert Buytenhek + +On the n2100, both onboard r8169 ports exhibit PCI parity problems. +Set the ->broken_parity_status flag for both ports so that the r8169 +drivers knows it should ignore error interrupts. + + +--- linux-2.6.19.orig/arch/arm/mach-iop32x/n2100.c ++++ linux-2.6.19/arch/arm/mach-iop32x/n2100.c +@@ -123,9 +123,26 @@ static struct hw_pci n2100_pci __initdat + + static int __init n2100_pci_init(void) + { +- if (machine_is_n2100()) ++ if (machine_is_n2100()) { ++ int i; ++ + pci_common_init(&n2100_pci); + ++ /* ++ * Both r8169 chips on the n2100 exhibit PCI parity ++ * problems. Set the ->broken_parity_status flag for ++ * both ports so that the r8169 driver knows it should ++ * ignore error interrupts. ++ */ ++ for (i = 1; i <= 2; i++) { ++ struct pci_dev *dev; ++ ++ dev = pci_get_bus_and_slot(0, PCI_DEVFN(i, 0)); ++ if (dev != NULL) ++ dev->broken_parity_status = 1; ++ } ++ } ++ + return 0; + } + Modified: dists/trunk/linux-2.6/debian/patches/series/1~experimental.1 ============================================================================== --- dists/trunk/linux-2.6/debian/patches/series/1~experimental.1 (original) +++ dists/trunk/linux-2.6/debian/patches/series/1~experimental.1 Mon Feb 5 14:56:27 2007 @@ -29,3 +29,4 @@ + bugfix/arm/disable-broken-config-options.patch + bugfix/arm/cyber2010_burst.patch + bugfix/arm/rtc-rs5c372-n2100.patch ++ bugfix/arm/n2100-r8169-parity.patch _______________________________________________ Kernel-svn-changes mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes

