Skip to content

Commit

Permalink
[MIPS] MTX1: clear PCI errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Mar 4, 2007
1 parent baa545f commit 8b4ac6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/mips/pci/ops-au1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8b4ac6f

Please sign in to comment.