From: Yanteng Si <si.yanteng@linux.dev>
To: Dongliang Mu <dzm91@hust.edu.cn>,
"Jiri Slaby (SUSE)" <jirislaby@kernel.org>,
tglx@kernel.org
Cc: linux-kernel@vger.kernel.org, Radu Rendec <radu@rendec.net>,
Alex Shi <alexs@kernel.org>
Subject: Re: [PATCH v2] irqdomain: Delete irq_domain_add_linear()
Date: Wed, 2 Sep 2026 10:43:14 +0800 [thread overview]
Message-ID: <e3d21597-83bf-4637-a460-85ad757f524a@linux.dev> (raw)
In-Reply-To: <d1025540-8eee-441c-9e7e-c0aada663a0f@hust.edu.cn>
在 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,
>
next prev parent reply other threads:[~2026-09-02 2:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 7:04 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 [this message]
2026-09-04 8:42 ` [tip: irq/urgent] " tip-bot2 for Jiri Slaby (SUSE)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e3d21597-83bf-4637-a460-85ad757f524a@linux.dev \
--to=si.yanteng@linux.dev \
--cc=alexs@kernel.org \
--cc=dzm91@hust.edu.cn \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=radu@rendec.net \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®