powerpc/eeh: Don't use pci_dev during BAR restore
While restoring BARs for one specific PCI device, the pci_dev instance should have been released. So it's not reliable to use the pci_dev instance on restoring BARs. However, we still need some information (e.g. PCIe capability position, header type) from the pci_dev instance. So we have to store those information to EEH device in advance. Signed-off-by:Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by:
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Showing
- arch/powerpc/include/asm/eeh.h 6 additions, 2 deletionsarch/powerpc/include/asm/eeh.h
- arch/powerpc/kernel/eeh_pe.c 12 additions, 13 deletionsarch/powerpc/kernel/eeh_pe.c
- arch/powerpc/platforms/powernv/eeh-powernv.c 11 additions, 0 deletionsarch/powerpc/platforms/powernv/eeh-powernv.c
- arch/powerpc/platforms/pseries/eeh_pseries.c 62 additions, 1 deletionarch/powerpc/platforms/pseries/eeh_pseries.c
Loading
Please register or sign in to comment