aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2014-10-01 17:07:49 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2014-10-15 11:27:18 +1100
commit8315070c07e7ef5f58ce9e317dc91fd727ecd419 (patch)
tree003337a255c788026c67454c2decb8cc632fa780 /arch/powerpc
parentpowerpc/pseries: Make CPU hotplug path endian safe (diff)
downloadlinux-dev-8315070c07e7ef5f58ce9e317dc91fd727ecd419.tar.xz
linux-dev-8315070c07e7ef5f58ce9e317dc91fd727ecd419.zip
powerpc/eeh: Fix condition for isolated state
Function eeh_pe_state_mark() could possibly have combination of multiple EEH PE state as its argument. The patch fixes the condition used to check if EEH_PE_ISOLATED is included. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/kernel/eeh_pe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/eeh_pe.c b/arch/powerpc/kernel/eeh_pe.c
index 53dd0915e690..37f21284809c 100644
--- a/arch/powerpc/kernel/eeh_pe.c
+++ b/arch/powerpc/kernel/eeh_pe.c
@@ -525,7 +525,7 @@ static void *__eeh_pe_state_mark(void *data, void *flag)
pe->state |= state;
/* Offline PCI devices if applicable */
- if (state != EEH_PE_ISOLATED)
+ if (!(state & EEH_PE_ISOLATED))
return NULL;
eeh_pe_for_each_dev(pe, edev, tmp) {