Philipp Stanner d47bde7080
PCI: Add managed pcim_request_region()
These existing functions:

  pci_request_region()
  pci_request_selected_regions()
  pci_request_selected_regions_exclusive()

are "hybrid" functions built on __pci_request_region() and are managed if
pcim_enable_device() has been called, but unmanaged otherwise.

Add these new functions:

  pcim_request_region()
  pcim_request_region_exclusive()

These are *always* managed and use the new pcim_addr_devres tracking
infrastructure instead of find_pci_dr() and struct pci_devres.region_mask.

Implement the hybrid functions using the new "pure" functions and remove
struct pci_devres.region_mask, which is no longer needed.

Link: https://lore.kernel.org/r/20240613115032.29098-6-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2024-07-10 04:19:56 +00:00
..
2024-05-16 18:14:13 -05:00
2024-05-16 18:14:14 -05:00
2024-05-21 10:09:28 -07:00
2024-05-16 18:14:14 -05:00
2023-10-24 16:55:45 -05:00
2024-04-09 09:33:15 -05:00
2024-02-12 10:35:40 -06:00
2024-02-12 10:35:40 -06:00
2024-03-12 12:14:23 -05:00
2023-10-28 13:30:59 -05:00
2024-03-12 12:14:24 -05:00
2024-07-10 04:19:56 +00:00
2024-07-10 04:19:56 +00:00
2024-05-16 18:14:14 -05:00
2024-05-21 10:09:28 -07:00
2023-09-28 16:49:44 -05:00
2023-10-24 16:55:45 -05:00
2023-11-02 14:05:18 -10:00