diff options
author | Florian Fainelli <florian.fainelli@int-evry.fr> | 2007-03-02 22:08:01 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-03-04 20:02:45 +0100 |
commit | 8b4ac6f316b493fae511921e25c72119f7b03170 (patch) | |
tree | de435cfea5bc6d6ce319da2bc3b81e4d04050294 /arch/mips/pci | |
parent | [MIPS] MTX1: add idsel cardbus ressources (diff) | |
download | linux-8b4ac6f316b493fae511921e25c72119f7b03170.tar.xz linux-8b4ac6f316b493fae511921e25c72119f7b03170.zip |
[MIPS] MTX1: clear PCI errors
This patch clears PCI errors after showing more debug informations.
Signed-off-by: Florian Fainelli <florian.fainelli@int-evry.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/ops-au1000.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/pci/ops-au1000.c b/arch/mips/pci/ops-au1000.c index 8ae46481fcb7..7932dfe5eb9b 100644 --- a/arch/mips/pci/ops-au1000.c +++ b/arch/mips/pci/ops-au1000.c @@ -172,7 +172,11 @@ static int config_access(unsigned char access_type, struct pci_bus *bus, 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; } |