Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48991
b: refs/heads/master
c: 66822b2
h: refs/heads/master
i:
  48989: f3f1cf2
  48987: 8184b68
  48983: b39fadb
  48975: 4cba0ba
  48959: a3284f5
v: v3
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Feb 18, 2007
1 parent 16fe4c4 commit d0dcb40
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14d178a143568f3651a40af6defadd44fb0b6b81
refs/heads/master: 66822b2eef8de9fe3ec9fa837386817565dbe690
14 changes: 14 additions & 0 deletions trunk/arch/arm/mach-iop32x/n2100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit d0dcb40

Please sign in to comment.