Skip to contentSkip to conversation

of: irq: Report individual failures in of_irq_init()

PATCH Applied Alexander A Sverdlin 2 participants 2 messages Sep 7, 2022 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 of: irq: Report individual failures in of_irq_init()

From: Alexander Sverdlin <[email protected]>

New pr_err(), a copy of preceeding pr_debug(), faciliates 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.

---

Changelog:
v2:
* Kept existing pr_debug() on Rob's request

 drivers/of/irq.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/of/irq.c +3 -0
index d22f605..2bac44f 100644
@@ -592,6 +592,9 @@ void __init of_irq_init(const struct of_device_id *matches)
 			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;
Signature · 1 line
2.10.2
maintainer Applied
#1 lore raw
Quoted 10 lines · Alexander A Sverdlin

From: Alexander Sverdlin <[email protected]>

New pr_err(), a copy of preceeding pr_debug(), faciliates 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.

Quoted 9 lines

---

Changelog:
v2:
* Kept existing pr_debug() on Rob's request

 drivers/of/irq.c | 3 +++
 1 file changed, 3 insertions(+)

Applied, thanks!