aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2021-08-08 19:20:05 +0200
committerBjorn Helgaas <[email protected]>2021-08-12 12:48:32 -0500
commita38fccdb6289d9e4796e746040b491bb0f31b151 (patch)
tree3cb068cf9cf70716b51bc5c2d00219fe2a79910d /lib/mpi/mpi-mod.c
parentd27f7344ba89897d0ce6ebe0c9eecbe214f9bb8f (diff)
PCI/VPD: Remove struct pci_vpd_ops
Some multi-function devices share VPD hardware across functions and don't work correctly for concurrent VPD accesses to different functions. Struct pci_vpd_ops was added by 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") so that on these devices, VPD accesses to any function would always go to function 0. It's easier to just check for the PCI_DEV_FLAGS_VPD_REF_F0 quirk bit in the two places we need it than to deal with the struct pci_vpd_ops. Simplify the code by removing struct pci_vpd_ops and removing the indirect calls. [bhelgaas: check for !func0_dev earlier, commit log] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions