[PATCH v4 1/2] PCI: Expose devm_pci_alloc_host_bridge_release()

Manivannan Sadhasivam manivannan.sadhasivam at oss.qualcomm.com
Wed Oct 14 04:00:35 PDT 2026


On 2026-10-13 17:04 -0500, Bjorn Helgaas wrote:
> devm_pci_alloc_host_bridge() allocates a struct pci_host_bridge and also
> parses device tree resources and claims them.  There are drivers, e.g.,
> pcie-iproc-bcma.c, that need to allocate a pci_host_bridge but do not need
> device tree resources.
> 
> Expose devm_pci_alloc_host_bridge_release() so they can avoid the device
> tree parts by calling pci_alloc_host_bridge() directly and adding the devm
> release function manually.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas at google.com>

Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam at oss.qualcomm.com>

- Mani




More information about the linux-arm-kernel mailing list