PCI: endpoint: Add support to associate secondary EPC with EPF
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 1 Feb 2021 19:57:58 +0000 (01:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 20:10:51 +0000 (14:10 -0600)
commit63840ff5322373d665b2b9c59cd64233d5f0691e
tree5551abf2451794c8fce75dd8d55c30524c6cc1e6
parent7e5a51ebb321537c4209cdd0c54c4c19b3ef960d
PCI: endpoint: Add support to associate secondary EPC with EPF

In the case of standard endpoint functions, only one endpoint controller
(EPC) will be associated with an endpoint function (EPF). However for
providing NTB (non transparent bridge) functionality, two EPCs should be
associated with a single EPF.  Add support to associate secondary EPC with
EPF. This is in preparation for adding NTB endpoint function driver.

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