]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: endpoint: Add intx_capable to epc_features struct
authorNiklas Cassel <cassel@kernel.org>
Mon, 10 Mar 2025 11:10:21 +0000 (12:10 +0100)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 26 Mar 2025 06:09:38 +0000 (06:09 +0000)
commit4b313c69a38e28b2f002198c3909fb553e9b0176
tree272e781dd1c924a1551aca65153bdce3626ddd6b
parent24a42582b00810970decb051ce3e25d2c661dd92
PCI: endpoint: Add intx_capable to epc_features struct

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>
[kwilczynski: add missing kernel-doc for "intx_capable"]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Link: https://lore.kernel.org/r/20250310111016.859445-13-cassel@kernel.org
include/linux/pci-epc.h