Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 5/7] MTX1 clear PCI errors
@ 2007-03-02 21:08 Florian Fainelli
  2007-03-03 14:46 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2007-03-02 21:08 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 136 bytes --]

This patch clears PCI errors after showing more debug informations.

Signed-off-by: Florian Fainelli <florian.fainelli@int-evry.fr>
-- 

[-- Attachment #2: 009-pci_clear_errors.patch --]
[-- Type: text/plain, Size: 622 bytes --]

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;
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 5/7] MTX1 clear PCI errors
  2007-03-02 21:08 [PATCH 5/7] MTX1 clear PCI errors Florian Fainelli
@ 2007-03-03 14:46 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-03-03 14:46 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: linux-mips

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

Applied, thanks.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-03 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02 21:08 [PATCH 5/7] MTX1 clear PCI errors Florian Fainelli
2007-03-03 14:46 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox