Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=66822b2eef8de9fe3ec9fa837386817565dbe690
Commit:     66822b2eef8de9fe3ec9fa837386817565dbe690
Parent:     14d178a143568f3651a40af6defadd44fb0b6b81
Author:     Lennert Buytenhek <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 8 01:03:17 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Sun Feb 18 10:59:51 2007 +0000

    [ARM] 4058/2: iop32x: set ->broken_parity_status on n2100 onboard r8169 
ports
    
    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.
    
    Signed-off-by: Lennert Buytenhek <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/mach-iop32x/n2100.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c
index 2499a77..966aa51 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 = {
        .map_irq        = n2100_pci_map_irq,
 };
 
+/*
+ * 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.
+ */
+static void n2100_fixup_r8169(struct pci_dev *dev)
+{
+       if (dev->bus->number == 0 &&
+           (dev->devfn == PCI_DEVFN(1, 0) ||
+            dev->devfn == PCI_DEVFN(2, 0)))
+               dev->broken_parity_status = 1;
+}
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_REALTEK, PCI_ANY_ID, n2100_fixup_r8169);
+
 static int __init n2100_pci_init(void)
 {
        if (machine_is_n2100())
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to