summaryrefslogtreecommitdiffstats
path: root/arch/s390/pci/pci_debug.c
diff options
context:
space:
mode:
authorNiklas Schnelle <schnelle@linux.ibm.com>2021-02-11 14:20:03 +0100
committerHeiko Carstens <hca@linux.ibm.com>2021-04-12 12:46:41 +0200
commitfaf29a4d93a98b4ccd8a10297353a9d0779d231f (patch)
tree2156f4af74e0b07a5850fc5ae448dfaa517357fb /arch/s390/pci/pci_debug.c
parents390/traps: convert pgm_check.S to C (diff)
downloadlinux-faf29a4d93a98b4ccd8a10297353a9d0779d231f.tar.xz
linux-faf29a4d93a98b4ccd8a10297353a9d0779d231f.zip
s390/pci: introduce zpci_bus_scan_device()
To match zpci_bus_scan_device() and the PCI common code terminology and to remove some code duplication, we pull the multiple uses of pci_scan_single_device() into a function. For now this has the side effect of adding each device to the PCI bus separately and locking and unlocking the rescan/remove lock for each instead of just once per bus. This is clearly less efficient but provides a correct intermediate behavior until a follow on change does both the adding and scanning only once per bus. Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Acked-by: Pierre Morel <pmorel@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci_debug.c')
0 files changed, 0 insertions, 0 deletions