diff options
author | Alistair Popple <alistair@popple.id.au> | 2015-07-30 09:53:54 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-07-30 12:01:32 +0300 |
commit | b8d65e9662b1ffb3b52a65fd11b0b968022dc6a1 (patch) | |
tree | 2f99e8031577dbf9691c90f11efe4510ccb0abf1 /arch/powerpc/platforms/powernv/eeh-powernv.c | |
parent | 120d200a86273d1840d091959dca65617cd9eff2 (diff) | |
download | linux-b8d65e9662b1ffb3b52a65fd11b0b968022dc6a1.tar.xz |
powerpc/eeh-powernv: Fix unbalanced IRQ warning
pnv_eeh_next_error() re-enables the eeh opal event interrupt but it
gets called from a loop if there are more outstanding events to
process, resulting in a warning due to enabling an already enabled
interrupt. Instead the interrupt should only be re-enabled once the
last outstanding event has been processed.
Tested-by: Daniel Axtens <dja@axtens.net>
Reported-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/eeh-powernv.c')
-rw-r--r-- | arch/powerpc/platforms/powernv/eeh-powernv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/eeh-powernv.c b/arch/powerpc/platforms/powernv/eeh-powernv.c index 5cf5e6ea213b..7cf0df859d05 100644 --- a/arch/powerpc/platforms/powernv/eeh-powernv.c +++ b/arch/powerpc/platforms/powernv/eeh-powernv.c @@ -1478,7 +1478,7 @@ static int pnv_eeh_next_error(struct eeh_pe **pe) } /* Unmask the event */ - if (eeh_enabled()) + if (ret == EEH_NEXT_ERR_NONE && eeh_enabled()) enable_irq(eeh_event_irq); return ret; |