]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Add pci_resource_is_iov() to identify IOV resources
authorMichał Winiarski <michal.winiarski@intel.com>
Mon, 16 Dec 2024 17:56:15 +0000 (19:56 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Feb 2025 21:40:52 +0000 (15:40 -0600)
commitcbd384389eac296de9d2088dac0617911361b2f4
treec08c112cdb5b79a8aff04ed4db007ef30b4e84ce
parentee4621b7e46ad857dd14bed13bf8804b42a80e66
PCI: Add pci_resource_is_iov() to identify IOV resources

There are multiple places where special handling is required for IOV
resources.

Extract the identification of IOV resources to pci_resource_is_iov() and
drop a few ifdefs.

Link: https://lore.kernel.org/r/20241216175632.4175-9-ilpo.jarvinen@linux.intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Tested-by: Xiaochun Lee <lixc17@lenovo.com>
drivers/pci/pci.h
drivers/pci/setup-bus.c
drivers/pci/setup-res.c