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

Thomas Gleixner posted 1 patch 7 months, 1 week ago
There is a newer version of this series
drivers/irqchip/irq-econet-en751221.c |    3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[PATCH] irqchip/econet-en751221: Switch to irq_domain_create_linear()
Posted by Thomas Gleixner 7 months, 1 week ago
irq_domain_add_linear() is about to be removed. Switch to
irq_domain_create_linear().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 drivers/irqchip/irq-econet-en751221.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/irqchip/irq-econet-en751221.c
+++ b/drivers/irqchip/irq-econet-en751221.c
@@ -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;
Re: [PATCH] irqchip/econet-en751221: Switch to irq_domain_create_linear()
Posted by Jiri Slaby 7 months, 1 week ago
On 06. 05. 25, 15:17, Thomas Gleixner wrote:
> irq_domain_add_linear() is about to be removed. Switch to
> irq_domain_create_linear().
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> ---
>   drivers/irqchip/irq-econet-en751221.c |    3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> --- a/drivers/irqchip/irq-econet-en751221.c
> +++ b/drivers/irqchip/irq-econet-en751221.c
> @@ -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,
-- 
js
suse labs
Re: [PATCH] irqchip/econet-en751221: Switch to irq_domain_create_linear()
Posted by Thomas Gleixner 7 months, 1 week ago
On Mon, May 12 2025 at 10:55, Jiri Slaby wrote:
> On 06. 05. 25, 15:17, Thomas Gleixner wrote:
>> irq_domain_add_linear() is about to be removed. Switch to
>> irq_domain_create_linear().
>> 
>> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
>> ---
>>   drivers/irqchip/irq-econet-en751221.c |    3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>> 
>> --- a/drivers/irqchip/irq-econet-en751221.c
>> +++ b/drivers/irqchip/irq-econet-en751221.c
>> @@ -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.

Hrmpf. Yes....
Re: [PATCH] irqchip/econet-en751221: Switch to irq_domain_create_linear()
Posted by Jiri Slaby 7 months, 1 week ago
On 06. 05. 25, 15:17, Thomas Gleixner wrote:
> irq_domain_add_linear() is about to be removed. Switch to
> irq_domain_create_linear().
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Late, but:
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>

Thanks for fixing this new one.

-- 
js
suse labs
Re: [PATCH] irqchip/econet-en751221: Switch to irq_domain_create_linear()
Posted by Caleb James DeLisle 7 months, 1 week ago
On 06/05/2025 15:17, Thomas Gleixner wrote:
> irq_domain_add_linear() is about to be removed. Switch to
> irq_domain_create_linear().
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Caleb James DeLisle <cjd@cjdns.fr>
> ---
>   drivers/irqchip/irq-econet-en751221.c |    3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- a/drivers/irqchip/irq-econet-en751221.c
> +++ b/drivers/irqchip/irq-econet-en751221.c
> @@ -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;
[tip: irq/drivers] irqchip/econet-en751221: Switch to irq_domain_create_linear()
Posted by tip-bot2 for Thomas Gleixner 7 months, 1 week ago
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 <tglx@linutronix.de>
AuthorDate:    Tue, 06 May 2025 15:17:46 +02:00
Committer:     Thomas Gleixner <tglx@linutronix.de>
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().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Caleb James DeLisle <cjd@cjdns.fr>
Link: https://lore.kernel.org/all/877c2top39.ffs@tglx

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

diff --git a/drivers/irqchip/irq-econet-en751221.c b/drivers/irqchip/irq-econet-en751221.c
index 886d60c..fd65dfe 100644
--- a/drivers/irqchip/irq-econet-en751221.c
+++ b/drivers/irqchip/irq-econet-en751221.c
@@ -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;