Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions drivers/pci/controller/dwc/pcie-designware-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,16 @@ int dw_pcie_setup_rc(struct dw_pcie_rp *pp)

dw_pcie_dbi_ro_wr_dis(pci);

/*
* If iMSI-RX module is used as the MSI controller, remove MSI and
* MSI-X capabilities from PCIe Root Ports to ensure fallback to INTx
* interrupt handling.
*/
if (pp->has_msi_ctrl) {
dw_pcie_remove_capability(pci, PCI_CAP_ID_MSI);
dw_pcie_remove_capability(pci, PCI_CAP_ID_MSIX);
}

return 0;
}
EXPORT_SYMBOL_GPL(dw_pcie_setup_rc);
Expand Down