PCI: dwc: Add ->get_features() callback function to dw_pcie_ep_ops
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 14 Jan 2019 11:15:00 +0000 (16:45 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 14 Feb 2019 16:09:14 +0000 (16:09 +0000)
commitfee35cb76a54c87985410ea6aa12002e5d38b367
tree94f84e9f216a4b5e297bd0b02bb0a054e948097d
parent41cb8d189c9d4964df52a6f497cab7b301ae831b
PCI: dwc: Add ->get_features() callback function to dw_pcie_ep_ops

Each platform using Designware PCIe core can support different set of
endpoint features. Add a new callback function ->get_features() in
dw_pcie_ep_ops so that each platform using Designware PCIe core can
advertise its supported features to the 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/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware.h