powerpc/eeh-powernv: Fix unbalanced IRQ warning
authorAlistair Popple <alistair@popple.id.au>
Thu, 30 Jul 2015 06:53:54 +0000 (16:53 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 30 Jul 2015 09:01:32 +0000 (19:01 +1000)
commitb8d65e9662b1ffb3b52a65fd11b0b968022dc6a1
tree2f99e8031577dbf9691c90f11efe4510ccb0abf1
parent120d200a86273d1840d091959dca65617cd9eff2
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>
arch/powerpc/platforms/powernv/eeh-powernv.c