powerpc/eeh: Allow to freeze PE in eeh_pe_set_option()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 28 Sep 2016 04:34:53 +0000 (14:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Sep 2016 04:51:02 +0000 (14:51 +1000)
commitde5a6622495117ef2e0335d509e917c91d9dd724
tree2883571b35647d505d2497c9c501cbc27085a767
parentfbce44d0ed42e4653172376f4dfeaa5710f06a27
powerpc/eeh: Allow to freeze PE in eeh_pe_set_option()

Function eeh_pe_set_option() is used to apply the requested options
(enable, disable, unfreeze) in EEH virtualization path. The semantics
of this function isn't complete until freezing is supported.

This allows to freeze the indicated PE. The new semantics is going to
be used in PCI surprise hot remove path, to freeze removed PCI devices
(PE) to avoid unexpected EEH error reporting.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c