diff options
author | Minda Chen <[email protected]> | 2024-03-28 17:18:21 +0800 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-05-28 11:15:29 -0500 |
commit | d76ef0531c0794d22eacfb1f0f887590e92fbf8e (patch) | |
tree | 26eaa3231e3f66ea6e16fb36541eaeb53376472f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 76c9113968079140cb2f885631db422170f32105 (diff) |
PCI: plda: Pass pci_host_bridge to plda_pcie_setup_iomems()
plda_pcie_setup_iomems() needs the bridge->windows list from struct
pci_host_bridge and is currently used only by pcie-microchip-host.c. This
driver uses pci_host_common_probe(), which sets a pci_host_bridge as the
drvdata, so plda_pcie_setup_iomems() used platform_get_drvdata() to find
the pci_host_bridge.
But we also want to use plda_pcie_setup_iomems() in the new pcie-starfive.c
driver, which does not use pci_host_common_probe() and will have struct
starfive_jh7110_pcie as its drvdata, so pass the pci_host_bridge directly
to plda_pcie_setup_iomems() so it doesn't need platform_get_drvdata() to
find it.
Link: https://lore.kernel.org/linux-pci/[email protected]
Signed-off-by: Minda Chen <[email protected]>
Signed-off-by: Krzysztof WilczyĆski <[email protected]>
[bhelgaas: commit log, reorder to where this is needed]
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions