powerpc/eeh: Cleaner handling of EEH_DEV_NO_HANDLER
authorSam Bobroff <sbobroff@linux.ibm.com>
Fri, 25 May 2018 03:11:39 +0000 (13:11 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:41 +0000 (20:43 +1000)
commit665012c5734b0f2123dfb4b2bdd44c3344647b9a
tree6bfbf954ef2a77aa7663a986ba606c90f643c87d
parent010acfa1a76679174a0d8732965d76ae8a8531f7
powerpc/eeh: Cleaner handling of EEH_DEV_NO_HANDLER

If a device without a driver is recovered via EEH, the flag
EEH_DEV_NO_HANDLER is incorrectly left set on the device after
recovery, because the test in eeh_report_resume() for the existence of
a bound driver is done before the flag is cleared. If a driver is
later bound, and EEH experienced again, some of the drivers EEH
handers are not called.

To correct this, clear the flag unconditionally after EEH processing
is complete.

Signed-off-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c