diff options
Diffstat (limited to 'drivers/pci/controller/dwc')
-rw-r--r-- | drivers/pci/controller/dwc/pci-dra7xx.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c index a32d6dde7a57..15620cfa617b 100644 --- a/drivers/pci/controller/dwc/pci-dra7xx.c +++ b/drivers/pci/controller/dwc/pci-dra7xx.c | |||
@@ -389,9 +389,22 @@ static int dra7xx_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no, | |||
389 | return 0; | 389 | return 0; |
390 | } | 390 | } |
391 | 391 | ||
392 | static const struct pci_epc_features dra7xx_pcie_epc_features = { | ||
393 | .linkup_notifier = true, | ||
394 | .msi_capable = true, | ||
395 | .msix_capable = false, | ||
396 | }; | ||
397 | |||
398 | static const struct pci_epc_features* | ||
399 | dra7xx_pcie_get_features(struct dw_pcie_ep *ep) | ||
400 | { | ||
401 | return &dra7xx_pcie_epc_features; | ||
402 | } | ||
403 | |||
392 | static struct dw_pcie_ep_ops pcie_ep_ops = { | 404 | static struct dw_pcie_ep_ops pcie_ep_ops = { |
393 | .ep_init = dra7xx_pcie_ep_init, | 405 | .ep_init = dra7xx_pcie_ep_init, |
394 | .raise_irq = dra7xx_pcie_raise_irq, | 406 | .raise_irq = dra7xx_pcie_raise_irq, |
407 | .get_features = dra7xx_pcie_get_features, | ||
395 | }; | 408 | }; |
396 | 409 | ||
397 | static int __init dra7xx_add_pcie_ep(struct dra7xx_pcie *dra7xx, | 410 | static int __init dra7xx_add_pcie_ep(struct dra7xx_pcie *dra7xx, |