[PATCH] PCI: mediatek: Find INTx controller by property

aquapinn@qq.com posted 1 patch 1 month, 3 weeks ago
drivers/pci/controller/pcie-mediatek.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] PCI: mediatek: Find INTx controller by property
Posted by aquapinn@qq.com 1 month, 3 weeks ago
From: Zhengping Zhang <aquapinn@qq.com>

All existing DTS users already name the INTx child node
"interrupt-controller". Use of_get_child_by_name() to find it instead
of assuming it is the first child node.

Signed-off-by: Zhengping Zhang <aquapinn@qq.com>
---
 drivers/pci/controller/pcie-mediatek.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/controller/pcie-mediatek.c b/drivers/pci/controller/pcie-mediatek.c
index 8b57c3d75b94..7b54f3dc6cf8 100644
--- a/drivers/pci/controller/pcie-mediatek.c
+++ b/drivers/pci/controller/pcie-mediatek.c
@@ -572,9 +572,9 @@ static int mtk_pcie_init_irq_domain(struct mtk_pcie_port *port,
 	int ret;
 
 	/* Setup INTx */
-	pcie_intc_node = of_get_next_child(node, NULL);
+	pcie_intc_node = of_get_child_by_name(node, "interrupt-controller");
 	if (!pcie_intc_node) {
-		dev_err(dev, "no PCIe Intc node found\n");
+		dev_err(dev, "no PCIe INTx interrupt-controller node found\n");
 		return -ENODEV;
 	}
 
-- 
2.43.0
Re: [PATCH] PCI: mediatek: Find INTx controller by property
Posted by Manivannan Sadhasivam 3 weeks ago
On Wed, 05 Aug 2026 14:05:07 +0800, aquapinn@qq.com wrote:
> All existing DTS users already name the INTx child node
> "interrupt-controller". Use of_get_child_by_name() to find it instead
> of assuming it is the first child node.

Applied, thanks!

[1/1] PCI: mediatek: Find INTx controller by property
      commit: 52cbf88730b743745404b3fa5a3fc8b480768276

Best regards,
-- 
மணிவண்ணன் சதாசிவம்


Re: [PATCH] PCI: mediatek: Find INTx controller by property
Posted by Zhengping Zhang 4 weeks, 1 day ago
Hi all,

Gentle ping on this patch:

[PATCH] PCI: mediatek: Find INTx controller by property

This patch has been pending since August 5. Could a maintainer or
reviewer please take a look when you have time?

Thanks,
Zhengping