Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI: qcom-ep: Set intx_capable in epc_features
@ 2025-04-02  9:16 Niklas Cassel
  2025-04-02 14:22 ` Dmitry Baryshkov
  2025-04-02 16:34 ` Manivannan Sadhasivam
  0 siblings, 2 replies; 4+ messages in thread
From: Niklas Cassel @ 2025-04-02  9:16 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas
  Cc: Niklas Cassel, linux-arm-msm, linux-pci

While I do not have the technical reference manuals, the qcom-ep
maintainer assures me that all compatibles support generating INTx IRQs.

Thus, set intx_capable to true in epc_features.

This will currently not have any effect, as PCITEST_IRQ_TYPE_AUTO will
always prefer MSI over INTx when both are available, however, perhaps the
supported irq_types in epc_features will be used for something else, e.g.
failing a ioctl(PCITEST_SET_IRQTYPE) with PCITEST_IRQ_TYPE_INTX, on the
host side, before ever configuring anything on the EP side. Thus, ensure
that epc_features represents reality.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-qcom-ep.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c
index 46b1c6d19974..25468025e945 100644
--- a/drivers/pci/controller/dwc/pcie-qcom-ep.c
+++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c
@@ -824,6 +824,7 @@ static const struct pci_epc_features qcom_pcie_epc_features = {
 	.linkup_notifier = true,
 	.msi_capable = true,
 	.msix_capable = false,
+	.intx_capable = true,
 	.align = SZ_4K,
 	.bar[BAR_0] = { .only_64bit = true, },
 	.bar[BAR_1] = { .type = BAR_RESERVED, },
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-02 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-02  9:16 [PATCH] PCI: qcom-ep: Set intx_capable in epc_features Niklas Cassel
2025-04-02 14:22 ` Dmitry Baryshkov
2025-04-02 16:34 ` Manivannan Sadhasivam
2025-04-02 16:43   ` Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox