PCI: endpoint: Add new pci_epc_ops to get EPC features
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 14 Jan 2019 11:14:59 +0000 (16:44 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 14 Feb 2019 16:08:10 +0000 (16:08 +0000)
commit41cb8d189c9d4964df52a6f497cab7b301ae831b
tree4cdd410aedc140e4d2d92366db67a68b9a273be5
parent726dabfde6aa35a4f1508e235ae37edbbf9fbc65
PCI: endpoint: Add new pci_epc_ops to get EPC features

Add a new pci_epc_ops ->get_features() to get the features
supported by the EPC. Since EPC can provide different features to
different functions, the ->get_features() ops takes _func_no_ as
an argument.

Tested-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/endpoint/pci-epc-core.c
include/linux/pci-epc.h