fix .21 for sibyte.. because we can..
[openwrt/staging/chunkeey.git] / target / linux / au1000-2.6 / patches / 009-pci_clear_errors.patch
1 diff -urN linux-2.6.19/arch/mips/pci/ops-au1000.c linux-2.6.19.new/arch/mips/pci/ops-au1000.c
2 --- linux-2.6.19/arch/mips/pci/ops-au1000.c 2006-11-29 22:57:37.000000000 +0100
3 +++ linux-2.6.19.new/arch/mips/pci/ops-au1000.c 2006-12-28 03:02:42.000000000 +0100
4 @@ -172,7 +172,11 @@
5 error = -1;
6 DBG("Au1x Master Abort\n");
7 } else if ((status >> 28) & 0xf) {
8 - DBG("PCI ERR detected: status %x\n", status);
9 + DBG("PCI ERR detected: device %d, status %x\n", device, ((status >> 28) & 0xf));
10 +
11 + /* clear errors */
12 + au_writel(status & 0xf000ffff, Au1500_PCI_STATCMD);
13 +
14 *data = 0xffffffff;
15 error = -1;
16 }