Skip to contentSkip to conversation

MTX1 clear PCI errors

PATCH Applied Florian Fainelli 2 participants 2 messages Mar 2, 2007 – Mar 3, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 MTX1 clear PCI errors

This patch clears PCI errors after showing more debug informations.

arch/mips/pci/ops-au1000.c +5 -1
diff -urN linux-2.6.19/arch/mips/pci/ops-au1000.c linux-2.6.19.new/arch/mips/pci/ops-au1000.c
@@ -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;
 	}
Applied
#1 lore raw

On Fri, Mar 02, 2007 at 10:08:01PM +0100, Florian Fainelli wrote:

Applied, thanks.

Ralf