OSDN Git Service

powerpc/eeh: Refactor EEH PE reset functions
authorRussell Currey <ruscur@russell.cc>
Thu, 17 Nov 2016 05:07:47 +0000 (16:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 22 Nov 2016 00:57:08 +0000 (11:57 +1100)
commit6654c9368a6ff75a36230d8eb94676da1d01f5ae
tree43a489f282c928d50edba397b41e8f127689b75b
parent1f52f1761456c919814c995710153a8f878353df
powerpc/eeh: Refactor EEH PE reset functions

eeh_pe_reset and eeh_reset_pe are two different functions in the same
file which do mostly the same thing.  Not only is this confusing, but
potentially causes disrepancies in functionality, notably eeh_reset_pe
as it does not check return values for failure.

Refactor this into the following:

 - eeh_pe_reset(): stays as is, performs a single operation, exported
 - eeh_pe_reset_full(): new, full reset process that calls eeh_pe_reset()
 - eeh_reset_pe(): removed and replaced by eeh_pe_reset_full()
 - eeh_reset_pe_once(): removed

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/ppc-pci.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_driver.c