mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
PCI: Make pcim_iounmap_region() a public function
The function pcim_iounmap_regions() is problematic because it uses a
bitmask mechanism to release / iounmap multiple BARs at once. It, thus,
prevents getting rid of the problematic iomap table mechanism which was
deprecated in commit e354bb84a4 ("PCI: Deprecate pcim_iomap_table(),
pcim_iomap_regions_request_all()").
pcim_iounmap_region() does not have that problem. Make it public as the
successor of pcim_iounmap_regions().
Link: https://lore.kernel.org/r/20241016094911.24818-3-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
committed by
Bjorn Helgaas
parent
6d9c592125
commit
4a6afd6073
@@ -773,7 +773,7 @@ EXPORT_SYMBOL(pcim_iomap_region);
|
||||
* Unmap a BAR and release its region manually. Only pass BARs that were
|
||||
* previously mapped by pcim_iomap_region().
|
||||
*/
|
||||
static void pcim_iounmap_region(struct pci_dev *pdev, int bar)
|
||||
void pcim_iounmap_region(struct pci_dev *pdev, int bar)
|
||||
{
|
||||
struct pcim_addr_devres res_searched;
|
||||
|
||||
@@ -784,6 +784,7 @@ static void pcim_iounmap_region(struct pci_dev *pdev, int bar)
|
||||
devres_release(&pdev->dev, pcim_addr_resource_release,
|
||||
pcim_addr_resources_match, &res_searched);
|
||||
}
|
||||
EXPORT_SYMBOL(pcim_iounmap_region);
|
||||
|
||||
/**
|
||||
* pcim_iomap_regions - Request and iomap PCI BARs (DEPRECATED)
|
||||
|
||||
Reference in New Issue
Block a user