powerpc/eeh: Delay probing EEH device during hotplug
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Thu, 30 Apr 2015 23:22:15 +0000 (09:22 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 May 2015 03:52:32 +0000 (13:52 +1000)
commitd91dafc02f42e23c1a906202ebde5d7c49ef058d
tree052bf14e9ed505257ee2cad44048b0c7ba264154
parent1ae79b78bc52b910a224f3795122538516e07b5f
powerpc/eeh: Delay probing EEH device during hotplug

Commit 1c509148b ("powerpc/eeh: Do probe on pci_dn") probes EEH
devices in early stage, which is reasonable to pSeries platform.
However, it's wrong for PowerNV platform because the PE# isn't
determined until the resources (IO and MMIO) are assigned to
PE in hotplug case. So we have to delay probing EEH devices
for PowerNV platform until the PE# is assigned.

Fixes: ff57b454ddb9 ("powerpc/eeh: Do probe on pci_dn")
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c