public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] of: irq: Report individual failures in of_irq_init()
@ 2022-09-06  9:59 Alexander A Sverdlin
  2022-09-06  9:59 ` [PATCH] mips: Select SPARSEMEM_EXTREME for CAVIUM_OCTEON_SOC Alexander A Sverdlin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander A Sverdlin @ 2022-09-06  9:59 UTC (permalink / raw)
  To: devicetree; +Cc: Alexander Sverdlin, Rob Herring, Frank Rowand, linux-kernel

From: Alexander Sverdlin <alexander.sverdlin@nokia.com>

Rewrite pr_debug() as pr_err() to faciliate debugging.

This change was inspired by a long lasting debugging of the
octeon_irq_init_ciu() which fails completely silently and leaves the
interrupt controller half-way configured which in turn had very non-obvious
effects.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
---
 drivers/of/irq.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index d22f605..45e4392 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -586,12 +586,12 @@ void __init of_irq_init(const struct of_device_id *matches)
 
 			of_node_set_flag(desc->dev, OF_POPULATED);
 
-			pr_debug("of_irq_init: init %pOF (%p), parent %p\n",
-				 desc->dev,
-				 desc->dev, desc->interrupt_parent);
 			ret = desc->irq_init_cb(desc->dev,
 						desc->interrupt_parent);
 			if (ret) {
+				pr_err("%s: Failed to init %pOF (%p), parent %p\n",
+				       __func__, desc->dev, desc->dev,
+				       desc->interrupt_parent);
 				of_node_clear_flag(desc->dev, OF_POPULATED);
 				kfree(desc);
 				continue;
-- 
2.10.2


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

end of thread, other threads:[~2022-09-08 21:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-06  9:59 [PATCH] of: irq: Report individual failures in of_irq_init() Alexander A Sverdlin
2022-09-06  9:59 ` [PATCH] mips: Select SPARSEMEM_EXTREME for CAVIUM_OCTEON_SOC Alexander A Sverdlin
2022-09-08 21:32   ` Thomas Bogendoerfer
2022-09-06  9:59 ` [PATCH] MIPS: OCTEON: irq: Fix octeon_irq_force_ciu_mapping() Alexander A Sverdlin
2022-09-07 13:08   ` Thomas Bogendoerfer
2022-09-06 17:45 ` [PATCH] of: irq: Report individual failures in of_irq_init() Rob Herring

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