[PATCH] powerpc/pseries: Increment fail counter in PCI recovery
authorLinas Vepstas <linas@austin.ibm.com>
Fri, 28 Apr 2006 22:39:38 +0000 (17:39 -0500)
committerPaul Mackerras <paulus@samba.org>
Fri, 19 May 2006 03:51:12 +0000 (13:51 +1000)
commit4240545661fc0ac25122f166e96633527150300c
tree9be44f79aa0a37d49744ce5a685ec41d057c60f3
parent877fbae3d51ba792639535bfc0f428154b8da605
[PATCH] powerpc/pseries: Increment fail counter in PCI recovery

When a PCI device driver does not support PCI error recovery,
the powerpc/pseries code takes a walk through a branch of code
that resets the failure counter. Because of this, if a broken
PCI card is present, the kernel will attempt to reset it an
infinite number of times. (This is annoying but mostly harmless:
each reset takes about 10-20 seconds, and uses almost no CPU time).

This patch preserves the failure count across resets.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/eeh_driver.c