OSDN Git Service

PCI: endpoint: Add support in configfs to associate two EPCs with EPF
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 1 Feb 2021 19:57:59 +0000 (01:27 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 20:10:59 +0000 (14:10 -0600)
commite85a2d7837622bd99c96f5bbc7f972da90c285a2
treec74c12532bbbd0a6eda4d7bc2b51502fdc648657
parent63840ff5322373d665b2b9c59cd64233d5f0691e
PCI: endpoint: Add support in configfs to associate two EPCs with EPF

Now that PCI endpoint core supports to add secondary endpoint controller
(EPC) with endpoint function (EPF), Add support in configfs to associate
two EPCs with EPF. This creates "primary" and "secondary" directory inside
the directory created by users for EPF device. Users have to add a symlink
of endpoint controller (pci_ep/controllers/) to "primary" or "secondary"
directory to bind EPF to primary and secondary EPF interfaces respectively.
Existing method of linking directory representing EPF device to directory
representing EPC device to associate a single EPC device with a EPF device
will continue to work.

Link: https://lore.kernel.org/r/20210201195809.7342-8-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>
Documentation/PCI/endpoint/pci-endpoint-cfs.rst
drivers/pci/endpoint/pci-ep-cfs.c