Commit b9b1812c authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] iSeries: Cleanup PCI retry code a little

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 9103eb7d
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
#include "pci.h" #include "pci.h"
#include "call_pci.h" #include "call_pci.h"
static int Pci_Retry_Max = 3; /* Only retry 3 times */ #define PCI_RETRY_MAX 3
static int Pci_Error_Flag = 1; /* Set Retry Error on. */ static int limit_pci_retries = 1; /* Set Retry Error on. */
/* /*
* Table defines * Table defines
...@@ -338,8 +338,8 @@ static int CheckReturnCode(char *TextHdr, struct device_node *DevNode, ...@@ -338,8 +338,8 @@ static int CheckReturnCode(char *TextHdr, struct device_node *DevNode,
* Bump the retry and check for retry count exceeded. * Bump the retry and check for retry count exceeded.
* If, Exceeded, panic the system. * If, Exceeded, panic the system.
*/ */
if (((*retry) > Pci_Retry_Max) && if (((*retry) > PCI_RETRY_MAX) &&
(Pci_Error_Flag > 0)) { (limit_pci_retries > 0)) {
mf_display_src(0xB6000103); mf_display_src(0xB6000103);
panic_timeout = 0; panic_timeout = 0;
panic("PCI: Hardware I/O Error, SRC B6000103, " panic("PCI: Hardware I/O Error, SRC B6000103, "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment