Skip to content

Commit 146d328

Browse files
kishonLorenzo Pieralisi
authored andcommitted
PCI: keystone: Allow AM654 PCIe Endpoint to raise MSI-X interrupt
AM654 PCIe EP controller has MSI-X capability register and has the ability to raise MSI-X interrupt. Add support in pci-keystone.c for PCIe endpoint controller in AM654 to raise MSI-X interrupts. Signed-off-by: Kishon Vijay Abraham I <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
1 parent 6f5e193 commit 146d328

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/pci/controller/dwc/pci-keystone.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,9 @@ static int ks_pcie_am654_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
959959
case PCI_EPC_IRQ_MSI:
960960
dw_pcie_ep_raise_msi_irq(ep, func_no, interrupt_num);
961961
break;
962+
case PCI_EPC_IRQ_MSIX:
963+
dw_pcie_ep_raise_msix_irq(ep, func_no, interrupt_num);
964+
break;
962965
default:
963966
dev_err(pci->dev, "UNKNOWN IRQ type\n");
964967
return -EINVAL;
@@ -970,7 +973,7 @@ static int ks_pcie_am654_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
970973
static const struct pci_epc_features ks_pcie_am654_epc_features = {
971974
.linkup_notifier = false,
972975
.msi_capable = true,
973-
.msix_capable = false,
976+
.msix_capable = true,
974977
.reserved_bar = 1 << BAR_0 | 1 << BAR_1,
975978
.bar_fixed_64bit = 1 << BAR_0,
976979
.bar_fixed_size[2] = SZ_1M,

0 commit comments

Comments
 (0)