powerpc/eeh: Add eeh_state_active() helper
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Mon, 19 Mar 2018 02:49:23 +0000 (13:49 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:45:19 +0000 (23:45 +1100)
commit34a286a4ac576d3d9ea3ac2bc7bbd4216a1f7ac7
tree2474a8ad747afd3e21581777ab0cb12dabf68ede
parent54048cf876615285363f6f6c21014bf2462ebe0d
powerpc/eeh: Add eeh_state_active() helper

Checking for a "fully active" device state requires testing two flag
bits, which is open coded in several places, so add a function to do
it.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/platforms/powernv/eeh-powernv.c