summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh.c
diff options
context:
space:
mode:
authorGavin Shan2015-10-08 05:58:55 +0200
committerMichael Ellerman2015-10-21 11:41:43 +0200
commit872ee2d6528188c1de942dff5688f55578c1b989 (patch)
tree5fc1d31fa25ea85a33162b2b52fa02dac127c65c /arch/powerpc/kernel/eeh.c
parentpowerpc/eeh: Force reset on fenced PHB (diff)
downloadkernel-qcow2-linux-872ee2d6528188c1de942dff5688f55578c1b989.tar.gz
kernel-qcow2-linux-872ee2d6528188c1de942dff5688f55578c1b989.tar.xz
kernel-qcow2-linux-872ee2d6528188c1de942dff5688f55578c1b989.zip
powerpc/eeh: More relaxed condition for enabled IO path
When one or both of the below two flags are marked in the PE state, the PE's IO path is regarded as enabled: EEH_STATE_MMIO_ACTIVE or EEH_STATE_MMIO_ENABLED. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/eeh.c')
-rw-r--r--arch/powerpc/kernel/eeh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c
index 893978c980da..40e4d4a27663 100644
--- a/arch/powerpc/kernel/eeh.c
+++ b/arch/powerpc/kernel/eeh.c
@@ -631,7 +631,7 @@ int eeh_pci_enable(struct eeh_pe *pe, int function)
*/
switch (function) {
case EEH_OPT_THAW_MMIO:
- active_flag = EEH_STATE_MMIO_ACTIVE;
+ active_flag = EEH_STATE_MMIO_ACTIVE | EEH_STATE_MMIO_ENABLED;
break;
case EEH_OPT_THAW_DMA:
active_flag = EEH_STATE_DMA_ACTIVE;