Skip to contentSkip to conversation

irqchip/econet-en751221: Switch to irq_domain_create_linear()

PATCH Applied Thomas Gleixner 4 participants 6 messages May 6, 2025 – May 12, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/econet-en751221: Switch to irq_domain_create_linear()

irq_domain_add_linear() is about to be removed. Switch to irq_domain_create_linear().

---
 drivers/irqchip/irq-econet-en751221.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/irqchip/irq-econet-en751221.c +2 -1
@@ -286,7 +286,8 @@ static int __init econet_intc_of_init(st
 
 	econet_mask_all();
 
-	domain = irq_domain_add_linear(node, IRQ_COUNT, &econet_domain_ops, NULL);
+	domain = irq_domain_create_linear(of_node_to_fwnode(node), IRQ_COUNT,
+					  &econet_domain_ops, NULL);
 	if (!domain) {
 		pr_err("%pOF: Failed to add irqdomain\n", node);
 		ret = -ENOMEM;
maintainer Tested-by on v1 1/1
#1 lore raw
Quoted 4 lines · Thomas Gleixner

irq_domain_add_linear() is about to be removed. Switch to irq_domain_create_linear().

Quoted 16 lines
---
  drivers/irqchip/irq-econet-en751221.c |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/irqchip/irq-econet-en751221.c +2 -1
@@ -286,7 +286,8 @@ static int __init econet_intc_of_init(st
 
  	econet_mask_all();
 
-	domain = irq_domain_add_linear(node, IRQ_COUNT, &econet_domain_ops, NULL);
+	domain = irq_domain_create_linear(of_node_to_fwnode(node), IRQ_COUNT,
+					  &econet_domain_ops, NULL);
  	if (!domain) {
  		pr_err("%pOF: Failed to add irqdomain\n", node);
  		ret = -ENOMEM;
#2 lore raw
In reply to Thomas Gleixner
The following commit has been merged into the irq/drivers branch of tip:

The following commit has been merged into the irq/drivers branch of tip:

Commit-ID:     85cf5c63d32f39874d0dc1cd6c12b40e1ba8370e
Gitweb:        https://git.kernel.org/tip/85cf5c63d32f39874d0dc1cd6c12b40e1ba8370e
Author:        Thomas Gleixner <[email protected]>
AuthorDate:    Tue, 06 May 2025 15:17:46 +02:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Tue, 06 May 2025 17:18:31 +02:00

irqchip/econet-en751221: Switch to irq_domain_create_linear()

irq_domain_add_linear() is about to be removed. Switch to irq_domain_create_linear().

---
 drivers/irqchip/irq-econet-en751221.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/irqchip/irq-econet-en751221.c +2 -1
index 886d60c..fd65dfe 100644
@@ -286,7 +286,8 @@ static int __init econet_intc_of_init(struct device_node *node, struct device_no
 
 	econet_mask_all();
 
-	domain = irq_domain_add_linear(node, IRQ_COUNT, &econet_domain_ops, NULL);
+	domain = irq_domain_create_linear(of_node_to_fwnode(node), IRQ_COUNT,
+					  &econet_domain_ops, NULL);
 	if (!domain) {
 		pr_err("%pOF: Failed to add irqdomain\n", node);
 		ret = -ENOMEM;
#4 lore raw
In reply to Thomas Gleixner
Quoted 11 lines · Thomas Gleixner

irq_domain_add_linear() is about to be removed. Switch to irq_domain_create_linear().

---
  drivers/irqchip/irq-econet-en751221.c |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

drivers/irqchip/irq-econet-en751221.c static int __init econet_intc_of_init(st · line 289

Quoted 5 lines
drivers/irqchip/irq-econet-en751221.c +1 -1
@@ -286,7 +286,8 @@ static int __init econet_intc_of_init(st
 
  	econet_mask_all();
 
-	domain = irq_domain_add_linear(node, IRQ_COUNT, &econet_domain_ops, NULL);
+	domain = irq_domain_create_linear(of_node_to_fwnode(node), IRQ_COUNT,

Actually, of_node_to_fwnode() is dying. I will send a patch to convert to of_fwnode_handle() on the top of this one.

thanks,

Signature · 2 lines
js
suse labs
#5 lore raw
Quoted 13 lines · Jiri Slaby
Quoted 12 lines · Thomas Gleixner

irq_domain_add_linear() is about to be removed. Switch to irq_domain_create_linear().

---
  drivers/irqchip/irq-econet-en751221.c |    3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/irqchip/irq-econet-en751221.c +0 -0
@@ -286,7 +286,8 @@ static int __init econet_intc_of_init(st
 
Quoted 7 lines

drivers/irqchip/irq-econet-en751221.c static int __init econet_intc_of_init(st · line 289

Quoted 4 lines
drivers/irqchip/irq-econet-en751221.c +1 -1
  	econet_mask_all();
 
-	domain = irq_domain_add_linear(node, IRQ_COUNT, &econet_domain_ops, NULL);
+	domain = irq_domain_create_linear(of_node_to_fwnode(node), IRQ_COUNT,

Actually, of_node_to_fwnode() is dying. I will send a patch to convert to of_fwnode_handle() on the top of this one.

Hrmpf. Yes....