public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] of/irq: Fix a missed udpate of out_irq->np
@ 2024-11-08  2:34 Chanho Min
  2024-11-11 22:05 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Chanho Min @ 2024-11-08  2:34 UTC (permalink / raw)
  To: Rob Herring, Saravana Kannan, devicetree, linux-kernel
  Cc: gunho.lee, Chanho Min

Since commit 935df1bd40d4 ("of/irq: Factor out parsing of interrupt-map parent
phandle+args from of_irq_parse_raw()"), An interrupt tree without
an interrupt-map is not updated to the parent interrupt and it causes the irq
domain not to be found in some out-of-tree device-tree.

Fixes: 935df1bd40d4 ("of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_parse_raw()")

Signed-off-by: Chanho Min <chanho.min@lge.com>
---
 drivers/of/irq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index 8fd63100ba8f..3fa3c833e2dc 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -315,6 +315,7 @@ int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq)
 
 	skiplevel:
 		/* Iterate again with new parent */
+		out_irq->np = newpar;
 		pr_debug(" -> new parent: %pOF\n", newpar);
 		of_node_put(ipar);
 		ipar = newpar;
-- 
2.17.1


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

* Re: [PATCH] of/irq: Fix a missed udpate of out_irq->np
  2024-11-08  2:34 [PATCH] of/irq: Fix a missed udpate of out_irq->np Chanho Min
@ 2024-11-11 22:05 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2024-11-11 22:05 UTC (permalink / raw)
  To: Chanho Min; +Cc: Saravana Kannan, devicetree, linux-kernel, gunho.lee

On Fri, Nov 08, 2024 at 11:34:40AM +0900, Chanho Min wrote:
> Since commit 935df1bd40d4 ("of/irq: Factor out parsing of interrupt-map parent
> phandle+args from of_irq_parse_raw()"), An interrupt tree without
> an interrupt-map is not updated to the parent interrupt and it causes the irq
> domain not to be found in some out-of-tree device-tree.

Please see the comments I had in the previous fix for this[1].

TBC, I'll take the fix being trivial, but not without some details on 
what platform and what the (non-conformant) DT looks like in the commit 
message.

Rob

[1] https://lore.kernel.org/all/CAL_Jsq+Wcag2Lzu_kLRb5ia=3hNUOs1Ny93Y541eOY-NZOA5qw@mail.gmail.com/


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

end of thread, other threads:[~2024-11-11 22:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-08  2:34 [PATCH] of/irq: Fix a missed udpate of out_irq->np Chanho Min
2024-11-11 22:05 ` Rob Herring

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