PCI: pci-epf-test: Use pci_epc_get_features() to get EPC features
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 14 Jan 2019 11:15:09 +0000 (16:45 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 15 Feb 2019 10:01:16 +0000 (10:01 +0000)
commit2c04c5b8eef797dca99699cfb55ff42dd3c12c23
tree8d1d2aae34a2d0cdc4d75c7dce011e4fd80cbddf
parentb866c56b66d88a632e2fa6b922c4ea051937acbd
PCI: pci-epf-test: Use pci_epc_get_features() to get EPC features

Use pci_epc_get_features() to get EPC features such as linkup
notifier support, MSI/MSIX capable, BAR configuration etc and use it
for configuring pci-epf-test. Since these features are now obtained
directly from EPC driver, remove pci_epf_test_data which was initially
added to have EPC features in endpoint function driver.

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/functions/pci-epf-test.c