PCI: endpoint: Make *_free_bar() to return error codes on failure
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 1 Feb 2021 19:57:56 +0000 (01:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 20:10:40 +0000 (14:10 -0600)
commit0e27aeccfa3d1bab7c6a29fb8e6fcedbad7b09a8
tree4518aeb2b4be9f104191fe47d2a0779e8cea439e
parentfa8fef0e104a23efe568b835d9e7e188d1d97610
PCI: endpoint: Make *_free_bar() to return error codes on failure

Modify pci_epc_get_next_free_bar() and pci_epc_get_first_free_bar() to
return error values if there are no free BARs available.

Link: https://lore.kernel.org/r/20210201195809.7342-5-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/functions/pci-epf-test.c
drivers/pci/endpoint/pci-epc-core.c
include/linux/pci-epc.h
include/linux/pci-epf.h