summaryrefslogtreecommitdiffstats
path: root/target/linux/au1000-2.6/patches/009-pci_clear_errors.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-12-28 16:10:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-12-28 16:10:51 +0000
commitcea30742926710164f1b6617b928b54dc21dc714 (patch)
tree66f9b8b636f685f11ff9a0697d2a21aa62d25352 /target/linux/au1000-2.6/patches/009-pci_clear_errors.patch
parent50c5e5d9c9a7d0458830f89dcfcdd665cb047b5e (diff)
downloadmaster-31e0f0ae-cea30742926710164f1b6617b928b54dc21dc714.tar.gz
master-31e0f0ae-cea30742926710164f1b6617b928b54dc21dc714.tar.bz2
master-31e0f0ae-cea30742926710164f1b6617b928b54dc21dc714.zip
Port the i2c-gpio driver to the 2.6 kernel
SVN-Revision: 5916
Diffstat (limited to 'target/linux/au1000-2.6/patches/009-pci_clear_errors.patch')
-rw-r--r--target/linux/au1000-2.6/patches/009-pci_clear_errors.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/au1000-2.6/patches/009-pci_clear_errors.patch b/target/linux/au1000-2.6/patches/009-pci_clear_errors.patch
new file mode 100644
index 0000000000..27282b27c1
--- /dev/null
+++ b/target/linux/au1000-2.6/patches/009-pci_clear_errors.patch
@@ -0,0 +1,16 @@
+diff -urN linux-2.6.19/arch/mips/pci/ops-au1000.c linux-2.6.19.new/arch/mips/pci/ops-au1000.c
+--- linux-2.6.19/arch/mips/pci/ops-au1000.c 2006-11-29 22:57:37.000000000 +0100
++++ linux-2.6.19.new/arch/mips/pci/ops-au1000.c 2006-12-28 03:02:42.000000000 +0100
+@@ -172,7 +172,11 @@
+ error = -1;
+ DBG("Au1x Master Abort\n");
+ } else if ((status >> 28) & 0xf) {
+- DBG("PCI ERR detected: status %x\n", status);
++ DBG("PCI ERR detected: device %d, status %x\n", device, ((status >> 28) & 0xf));
++
++ /* clear errors */
++ au_writel(status & 0xf000ffff, Au1500_PCI_STATCMD);
++
+ *data = 0xffffffff;
+ error = -1;
+ }