Message ID | 20250310111016.859445-13-cassel@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Krzysztof WilczyĆski |
Headers | show |
Series | pci_endpoint_test: Add support for PCITEST_IRQ_TYPE_AUTO | expand |
diff --git a/include/linux/pci-epc.h b/include/linux/pci-epc.h index 9970ae73c8df..5872652291cc 100644 --- a/include/linux/pci-epc.h +++ b/include/linux/pci-epc.h @@ -232,6 +232,7 @@ struct pci_epc_features { unsigned int linkup_notifier : 1; unsigned int msi_capable : 1; unsigned int msix_capable : 1; + unsigned int intx_capable : 1; struct pci_epc_bar_desc bar[PCI_STD_NUM_BARS]; size_t align; };
In struct pci_epc_features, an EPC driver can already specify if they support MSI (by setting msi_capable) and MSI-X (by setting msix_capable). Thus, for consistency, allow an EPC driver to specify if it supports INTx interrupts as well (by setting intx_capable). Since this struct is zero initialized, EPC drivers that want to claim INTx support will need to set intx_capable to true. Signed-off-by: Niklas Cassel <cassel@kernel.org> --- include/linux/pci-epc.h | 1 + 1 file changed, 1 insertion(+)