PCI: endpoint: Add helper API to get the 'next' unreserved BAR
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 1 Feb 2021 19:57:55 +0000 (01:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 20:10:34 +0000 (14:10 -0600)
commitfa8fef0e104a23efe568b835d9e7e188d1d97610
tree2851deb51e0e704cd62e85a18145ba0504b277c9
parent959a48d0eac0321948c9f3d1707ba22c100e92d5
PCI: endpoint: Add helper API to get the 'next' unreserved BAR

Add an API to get the next unreserved BAR starting from a given BAR number
that can be used by the endpoint function.

Link: https://lore.kernel.org/r/20210201195809.7342-4-kishon@ti.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/endpoint/pci-epc-core.c
include/linux/pci-epc.h