diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-10-22 12:11:38 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-10-22 18:06:36 +0300 |
commit | 752430d1d33ed69653a6e8dbdf01f83cdf5be574 (patch) | |
tree | aff46841e93cb113dfb779f320913e672cd029c6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e2226dbc4a4919d9c8bd9293299b532090bdf020 (diff) | |
download | linux-752430d1d33ed69653a6e8dbdf01f83cdf5be574.tar.xz |
PCI: cpqphp: Use pci_bus_read_dev_vendor_id() to detect presence
The intent of the first part in PCI_RefinedAccessConfig() is to read Vendor
ID register and detect presence of the device that way.
Remove PCI_RefinedAccessConfig() (which was not named very helpfully to
begin with) and replace the call with pci_bus_read_dev_vendor_id() + read
config because it makes the logic more obvious at the caller side.
Link: https://lore.kernel.org/r/20241022091140.3504-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions