All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] irqdomain: Delete irq_domain_add_linear()
@ 2026-09-01  7:04 Jiri Slaby (SUSE)
  2026-09-01  7:04 ` [PATCH] " Jiri Slaby (SUSE)
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jiri Slaby (SUSE) @ 2026-09-01  7:04 UTC (permalink / raw)
  To: tglx
  Cc: linux-kernel, Jiri Slaby (SUSE), Radu Rendec, Alex Shi,
	Yanteng Si, Dongliang Mu

7.3-rc1 is free of calls to irq_domain_add_linear(), so it can be
deleted at last.

According to Dongliang Mu, the paragraph in the Chinese docs is now
obsolete. So drop it completely.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Thomas Gleixner <tglx@kernel.org>
Cc: Radu Rendec <radu@rendec.net>
Cc: Alex Shi <alexs@kernel.org>
Cc: Yanteng Si <si.yanteng@linux.dev>
Cc: Dongliang Mu <dzm91@hust.edu.cn>

---
[v2] drop the whole paragraph (Dongliang Mu)
---
 .../zh_CN/core-api/irq/irq-domain.rst          |  4 ----
 include/linux/irqdomain.h                      | 18 ------------------
 2 files changed, 22 deletions(-)

diff --git a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
index aaefeda0e164..7317cf5355c9 100644
--- a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
+++ b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
@@ -90,10 +90,6 @@ irq_domain映射的类型
 映射的优点是固定时间查找IRQ号,而且irq_descs只分配给在用的IRQ。 缺点是该表
 必须尽可能大的hwirq号。
 
-irq_domain_add_linear()和irq_domain_create_linear()在功能上是等价的,
-除了第一个参数不同--前者接受一个Open Firmware特定的 'struct device_node' 而
-后者接受一个更通用的抽象 'struct fwnode_handle' 。
-
 大多数驱动应该使用线性映射
 
 树状映射
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 73c25d40846c..3ba75a4ed3da 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -752,24 +752,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
 }
 #endif
 
-static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node,
-						       unsigned int size,
-						       const struct irq_domain_ops *ops,
-						       void *host_data)
-{
-	struct irq_domain_info info = {
-		.fwnode		= of_fwnode_handle(of_node),
-		.size		= size,
-		.hwirq_max	= size,
-		.ops		= ops,
-		.host_data	= host_data,
-	};
-	struct irq_domain *d;
-
-	d = irq_domain_instantiate(&info);
-	return IS_ERR(d) ? NULL : d;
-}
-
 #else /* CONFIG_IRQ_DOMAIN */
 static inline void irq_dispose_mapping(unsigned int virq) { }
 static inline struct irq_domain *irq_find_matching_fwnode(struct fwnode_handle *fwnode,
-- 
2.55.0


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

* [PATCH] irqdomain: Delete irq_domain_add_linear()
  2026-09-01  7:04 [PATCH v2] irqdomain: Delete irq_domain_add_linear() Jiri Slaby (SUSE)
@ 2026-09-01  7:04 ` Jiri Slaby (SUSE)
  2026-09-04  6:37   ` Thomas Gleixner
  2026-09-01  7:32 ` [PATCH v2] " Dongliang Mu
  2026-09-04  8:42 ` [tip: irq/urgent] " tip-bot2 for Jiri Slaby (SUSE)
  2 siblings, 1 reply; 7+ messages in thread
From: Jiri Slaby (SUSE) @ 2026-09-01  7:04 UTC (permalink / raw)
  To: tglx
  Cc: linux-kernel, Jiri Slaby (SUSE), Radu Rendec, Alex Shi,
	Yanteng Si, Dongliang Mu

7.3-rc1 is free of calls to irq_domain_add_linear(), so it can be
deleted at last.

According to Dongliang Mu, the paragraph in the Chinese docs is now
obsolete. So drop it completely.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Thomas Gleixner <tglx@kernel.org>
Cc: Radu Rendec <radu@rendec.net>
Cc: Alex Shi <alexs@kernel.org>
Cc: Yanteng Si <si.yanteng@linux.dev>
Cc: Dongliang Mu <dzm91@hust.edu.cn>

---
[v2] drop the whole paragraph (Dongliang Mu)
---
 .../zh_CN/core-api/irq/irq-domain.rst          |  4 ----
 include/linux/irqdomain.h                      | 18 ------------------
 2 files changed, 22 deletions(-)

diff --git a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
index aaefeda0e164..7317cf5355c9 100644
--- a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
+++ b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
@@ -90,10 +90,6 @@ irq_domain映射的类型
 映射的优点是固定时间查找IRQ号,而且irq_descs只分配给在用的IRQ。 缺点是该表
 必须尽可能大的hwirq号。
 
-irq_domain_add_linear()和irq_domain_create_linear()在功能上是等价的,
-除了第一个参数不同--前者接受一个Open Firmware特定的 'struct device_node' 而
-后者接受一个更通用的抽象 'struct fwnode_handle' 。
-
 大多数驱动应该使用线性映射
 
 树状映射
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 73c25d40846c..3ba75a4ed3da 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -752,24 +752,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
 }
 #endif
 
-static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node,
-						       unsigned int size,
-						       const struct irq_domain_ops *ops,
-						       void *host_data)
-{
-	struct irq_domain_info info = {
-		.fwnode		= of_fwnode_handle(of_node),
-		.size		= size,
-		.hwirq_max	= size,
-		.ops		= ops,
-		.host_data	= host_data,
-	};
-	struct irq_domain *d;
-
-	d = irq_domain_instantiate(&info);
-	return IS_ERR(d) ? NULL : d;
-}
-
 #else /* CONFIG_IRQ_DOMAIN */
 static inline void irq_dispose_mapping(unsigned int virq) { }
 static inline struct irq_domain *irq_find_matching_fwnode(struct fwnode_handle *fwnode,
-- 
2.55.0


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

* Re: [PATCH v2] irqdomain: Delete irq_domain_add_linear()
  2026-09-01  7:04 [PATCH v2] irqdomain: Delete irq_domain_add_linear() Jiri Slaby (SUSE)
  2026-09-01  7:04 ` [PATCH] " Jiri Slaby (SUSE)
@ 2026-09-01  7:32 ` Dongliang Mu
  2026-09-02  2:43   ` Yanteng Si
  2026-09-04  8:42 ` [tip: irq/urgent] " tip-bot2 for Jiri Slaby (SUSE)
  2 siblings, 1 reply; 7+ messages in thread
From: Dongliang Mu @ 2026-09-01  7:32 UTC (permalink / raw)
  To: Jiri Slaby (SUSE), tglx; +Cc: linux-kernel, Radu Rendec, Alex Shi, Yanteng Si


On 9/1/26 3:04 PM, Jiri Slaby (SUSE) wrote:
> 7.3-rc1 is free of calls to irq_domain_add_linear(), so it can be
> deleted at last.
>
> According to Dongliang Mu, the paragraph in the Chinese docs is now
> obsolete. So drop it completely.
>
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
> Cc: Thomas Gleixner <tglx@kernel.org>
> Cc: Radu Rendec <radu@rendec.net>
> Cc: Alex Shi <alexs@kernel.org>
> Cc: Yanteng Si <si.yanteng@linux.dev>
> Cc: Dongliang Mu <dzm91@hust.edu.cn>

Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>

>
> ---
> [v2] drop the whole paragraph (Dongliang Mu)
> ---
>   .../zh_CN/core-api/irq/irq-domain.rst          |  4 ----
>   include/linux/irqdomain.h                      | 18 ------------------
>   2 files changed, 22 deletions(-)
>
> diff --git a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
> index aaefeda0e164..7317cf5355c9 100644
> --- a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
> +++ b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
> @@ -90,10 +90,6 @@ irq_domain映射的类型
>   映射的优点是固定时间查找IRQ号,而且irq_descs只分配给在用的IRQ。 缺点是该表
>   必须尽可能大的hwirq号。
>   
> -irq_domain_add_linear()和irq_domain_create_linear()在功能上是等价的,
> -除了第一个参数不同--前者接受一个Open Firmware特定的 'struct device_node' 而
> -后者接受一个更通用的抽象 'struct fwnode_handle' 。
> -
>   大多数驱动应该使用线性映射
>   
>   树状映射
> diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
> index 73c25d40846c..3ba75a4ed3da 100644
> --- a/include/linux/irqdomain.h
> +++ b/include/linux/irqdomain.h
> @@ -752,24 +752,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
>   }
>   #endif
>   
> -static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node,
> -						       unsigned int size,
> -						       const struct irq_domain_ops *ops,
> -						       void *host_data)
> -{
> -	struct irq_domain_info info = {
> -		.fwnode		= of_fwnode_handle(of_node),
> -		.size		= size,
> -		.hwirq_max	= size,
> -		.ops		= ops,
> -		.host_data	= host_data,
> -	};
> -	struct irq_domain *d;
> -
> -	d = irq_domain_instantiate(&info);
> -	return IS_ERR(d) ? NULL : d;
> -}
> -
>   #else /* CONFIG_IRQ_DOMAIN */
>   static inline void irq_dispose_mapping(unsigned int virq) { }
>   static inline struct irq_domain *irq_find_matching_fwnode(struct fwnode_handle *fwnode,


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

* Re: [PATCH v2] irqdomain: Delete irq_domain_add_linear()
  2026-09-01  7:32 ` [PATCH v2] " Dongliang Mu
@ 2026-09-02  2:43   ` Yanteng Si
  0 siblings, 0 replies; 7+ messages in thread
From: Yanteng Si @ 2026-09-02  2:43 UTC (permalink / raw)
  To: Dongliang Mu, Jiri Slaby (SUSE), tglx; +Cc: linux-kernel, Radu Rendec, Alex Shi


在 2026/9/1 15:32, Dongliang Mu 写道:
>
> On 9/1/26 3:04 PM, Jiri Slaby (SUSE) wrote:
>> 7.3-rc1 is free of calls to irq_domain_add_linear(), so it can be
>> deleted at last.
>>
>> According to Dongliang Mu, the paragraph in the Chinese docs is now
>> obsolete. So drop it completely.
>>
>> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
>> Cc: Thomas Gleixner <tglx@kernel.org>
>> Cc: Radu Rendec <radu@rendec.net>
>> Cc: Alex Shi <alexs@kernel.org>
>> Cc: Yanteng Si <si.yanteng@linux.dev>
>> Cc: Dongliang Mu <dzm91@hust.edu.cn>
>
> Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>

Reviewed-by: Yanteng Si <si.yanteng@linux.dev>


Thanks,

Yanteng

>
>>
>> ---
>> [v2] drop the whole paragraph (Dongliang Mu)
>> ---
>>   .../zh_CN/core-api/irq/irq-domain.rst          |  4 ----
>>   include/linux/irqdomain.h                      | 18 ------------------
>>   2 files changed, 22 deletions(-)
>>
>> diff --git 
>> a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst 
>> b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
>> index aaefeda0e164..7317cf5355c9 100644
>> --- a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
>> +++ b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
>> @@ -90,10 +90,6 @@ irq_domain映射的类型
>>   映射的优点是固定时间查找IRQ号,而且irq_descs只分配给在用的IRQ。 
>> 缺点是该表
>>   必须尽可能大的hwirq号。
>>   -irq_domain_add_linear()和irq_domain_create_linear()在功能上是等价的,
>> -除了第一个参数不同--前者接受一个Open Firmware特定的 'struct device_node' 
>> 而
>> -后者接受一个更通用的抽象 'struct fwnode_handle' 。
>> -
>>   大多数驱动应该使用线性映射
>>     树状映射
>> diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
>> index 73c25d40846c..3ba75a4ed3da 100644
>> --- a/include/linux/irqdomain.h
>> +++ b/include/linux/irqdomain.h
>> @@ -752,24 +752,6 @@ static inline void 
>> msi_device_domain_free_wired(struct irq_domain *domain, unsig
>>   }
>>   #endif
>>   -static inline struct irq_domain *irq_domain_add_linear(struct 
>> device_node *of_node,
>> -                               unsigned int size,
>> -                               const struct irq_domain_ops *ops,
>> -                               void *host_data)
>> -{
>> -    struct irq_domain_info info = {
>> -        .fwnode        = of_fwnode_handle(of_node),
>> -        .size        = size,
>> -        .hwirq_max    = size,
>> -        .ops        = ops,
>> -        .host_data    = host_data,
>> -    };
>> -    struct irq_domain *d;
>> -
>> -    d = irq_domain_instantiate(&info);
>> -    return IS_ERR(d) ? NULL : d;
>> -}
>> -
>>   #else /* CONFIG_IRQ_DOMAIN */
>>   static inline void irq_dispose_mapping(unsigned int virq) { }
>>   static inline struct irq_domain *irq_find_matching_fwnode(struct 
>> fwnode_handle *fwnode,
>

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

* Re: [PATCH] irqdomain: Delete irq_domain_add_linear()
  2026-09-01  7:04 ` [PATCH] " Jiri Slaby (SUSE)
@ 2026-09-04  6:37   ` Thomas Gleixner
  2026-09-04  7:33     ` Jiri Slaby
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2026-09-04  6:37 UTC (permalink / raw)
  To: Jiri Slaby (SUSE)
  Cc: linux-kernel, Jiri Slaby (SUSE), Radu Rendec, Alex Shi,
	Yanteng Si, Dongliang Mu

On Tue, Sep 01 2026 at 09:04, Jiri Slaby wrote:

Can you get your act together?

The very same patch just with "[patch V2]" was sent by you _one_ second
before this one.


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

* Re: [PATCH] irqdomain: Delete irq_domain_add_linear()
  2026-09-04  6:37   ` Thomas Gleixner
@ 2026-09-04  7:33     ` Jiri Slaby
  0 siblings, 0 replies; 7+ messages in thread
From: Jiri Slaby @ 2026-09-04  7:33 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: linux-kernel, Radu Rendec, Alex Shi, Yanteng Si, Dongliang Mu

On 04. 09. 26, 8:37, Thomas Gleixner wrote:
> On Tue, Sep 01 2026 at 09:04, Jiri Slaby wrote:
> 
> Can you get your act together?
> 
> The very same patch just with "[patch V2]" was sent by you _one_ second
> before this one.

tl;dr You can ignore '[PATCH]' and look at '[PATCH v2]' only. Do you 
want me to send v3 properly?

I omitted `-1` to `git send-email` when sending 
`./v2-0001-irqdomain-Delete-irq_domain_add_linear.patch`. So it sent 
both '[PATCH]' and '[PATCH v2]'. With the same content.

thanks,
-- 
js
suse labs

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

* [tip: irq/urgent] irqdomain: Delete irq_domain_add_linear()
  2026-09-01  7:04 [PATCH v2] irqdomain: Delete irq_domain_add_linear() Jiri Slaby (SUSE)
  2026-09-01  7:04 ` [PATCH] " Jiri Slaby (SUSE)
  2026-09-01  7:32 ` [PATCH v2] " Dongliang Mu
@ 2026-09-04  8:42 ` tip-bot2 for Jiri Slaby (SUSE)
  2 siblings, 0 replies; 7+ messages in thread
From: tip-bot2 for Jiri Slaby (SUSE) @ 2026-09-04  8:42 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Jiri Slaby (SUSE), Thomas Gleixner, Dongliang Mu, Yanteng Si, x86,
	linux-kernel, maz

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

Commit-ID:     797b13a7de957792c1b4773aa2cc3dab4621fd9c
Gitweb:        https://git.kernel.org/tip/797b13a7de957792c1b4773aa2cc3dab4621fd9c
Author:        Jiri Slaby (SUSE) <jirislaby@kernel.org>
AuthorDate:    Tue, 01 Sep 2026 09:04:48 +02:00
Committer:     Thomas Gleixner <tglx@kernel.org>
CommitterDate: Fri, 04 Sep 2026 08:40:07 +02:00

irqdomain: Delete irq_domain_add_linear()

7.3-rc1 is free of calls to irq_domain_add_linear(), so it can be finally
deleted.

According to Dongliang Mu, the related paragraph in the Chinese docs is now
obsolete. So drop it completely.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Link: https://patch.msgid.link/20260901070450.255507-1-jirislaby@kernel.org
---
 Documentation/translations/zh_CN/core-api/irq/irq-domain.rst |  4 +--
 include/linux/irqdomain.h                                    | 18 +-------
 2 files changed, 22 deletions(-)

diff --git a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
index aaefeda..7317cf5 100644
--- a/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
+++ b/Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
@@ -90,10 +90,6 @@ irq_domain映射的类型
 映射的优点是固定时间查找IRQ号,而且irq_descs只分配给在用的IRQ。 缺点是该表
 必须尽可能大的hwirq号。
 
-irq_domain_add_linear()和irq_domain_create_linear()在功能上是等价的,
-除了第一个参数不同--前者接受一个Open Firmware特定的 'struct device_node' 而
-后者接受一个更通用的抽象 'struct fwnode_handle' 。
-
 大多数驱动应该使用线性映射
 
 树状映射
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 73c25d4..3ba75a4 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -752,24 +752,6 @@ static inline void msi_device_domain_free_wired(struct irq_domain *domain, unsig
 }
 #endif
 
-static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node,
-						       unsigned int size,
-						       const struct irq_domain_ops *ops,
-						       void *host_data)
-{
-	struct irq_domain_info info = {
-		.fwnode		= of_fwnode_handle(of_node),
-		.size		= size,
-		.hwirq_max	= size,
-		.ops		= ops,
-		.host_data	= host_data,
-	};
-	struct irq_domain *d;
-
-	d = irq_domain_instantiate(&info);
-	return IS_ERR(d) ? NULL : d;
-}
-
 #else /* CONFIG_IRQ_DOMAIN */
 static inline void irq_dispose_mapping(unsigned int virq) { }
 static inline struct irq_domain *irq_find_matching_fwnode(struct fwnode_handle *fwnode,

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

end of thread, other threads:[~2026-09-04  8:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01  7:04 [PATCH v2] irqdomain: Delete irq_domain_add_linear() Jiri Slaby (SUSE)
2026-09-01  7:04 ` [PATCH] " Jiri Slaby (SUSE)
2026-09-04  6:37   ` Thomas Gleixner
2026-09-04  7:33     ` Jiri Slaby
2026-09-01  7:32 ` [PATCH v2] " Dongliang Mu
2026-09-02  2:43   ` Yanteng Si
2026-09-04  8:42 ` [tip: irq/urgent] " tip-bot2 for Jiri Slaby (SUSE)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.