From nobody Tue Dec 16 15:29:24 2025 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F005E288C11; Tue, 6 May 2025 13:20:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746537646; cv=none; b=JX8UXKhQ1MzpbWz0Q8EY1VG9eSHpIyifbNDMOu/ILppxAmvcamIGLywa8zutTRsuOcHOxLbRpdTUnzdqx3puwOc0TuFmLAlW8u3mPZo8ut+86QOrEDo+7hDvpKhy6OxHXNjW6JKQQNZLwP4Dm3/NRYWXrb8GpBPe+oQ9dZd4XGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746537646; c=relaxed/simple; bh=RgcxX6NfGJZzlC4YvmU5i+krBXsiEre6S8QGqvXDPmY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=fmSXcQK3YJIPx9Hxj+d8EuVmtdCRpZ25l5i/tWOF+OsmiClDZ/PNR0HXgImkrQnYfYCqXR69fGMiFDwdHV2FY0CQ5Rqr7vluTvVXmssYlk61WZBpTttdBE+hNcY4kWqTvRoPlVuMoHArDPp1f2XWmpDXsaHU/QQ9JSYNZU5VwP8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gzFELdu1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=iXZKpSGB; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gzFELdu1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="iXZKpSGB" Date: Tue, 06 May 2025 13:20:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746537641; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oAN3efjIjzYYllRlqkEzadc7zkXvNGbQ+7pnDhaI1PI=; b=gzFELdu1GM1kBv2yTR0sVIN885GQjIADoLb2F9CHpaYxIJJQpT5YzY+ucXJlR5AXfITHLk n+8LG/MQQlKFlIKaIhl5jGolhcAhmls1moY5whljFiBTeDqEajef2Bc5xdq6QTVNceMFXV OZ/i4LKIitNF6RN6A74FZBjieF2AXxKYL9XR9r8jfuCza/4qWFQuTMxreHQy2Q7+6faZT9 RAL2piMJvIy/ahla/ujZsE/VQ0ynHCWpjO10WCyaJID6X43wslzCMpA8ThLluqQOH1/4kV hUO/bhkDnV8xsxL/0zmfVTEozspDs1XHwKThdkJNMpINY9y4V3fCEM3yHIXBpw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746537641; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oAN3efjIjzYYllRlqkEzadc7zkXvNGbQ+7pnDhaI1PI=; b=iXZKpSGBY8uZc49K66+jIfdThnGvolgCUOoNSpTetLX9fp91nbTuZg/5ribcAI8XB6xcI/ pL/KGzyR2OXwq9Bg== From: "tip-bot2 for Jiri Slaby (SUSE)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/cleanups] irqdomain: Drop of_node_to_fwnode() Cc: "Jiri Slaby (SUSE)" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250319092951.37667-12-jirislaby@kernel.org> References: <20250319092951.37667-12-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174653764077.406.1089729566379455912.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/cleanups branch of tip: Commit-ID: 851feeb8d6b7c3e7bfdda691d625523310ff231e Gitweb: https://git.kernel.org/tip/851feeb8d6b7c3e7bfdda691d62552331= 0ff231e Author: Jiri Slaby (SUSE) AuthorDate: Wed, 19 Mar 2025 10:29:04 +01:00 Committer: Thomas Gleixner CommitterDate: Tue, 06 May 2025 14:59:04 +02:00 irqdomain: Drop of_node_to_fwnode() All uses of of_node_to_fwnode() in non-irqdomain code were changed to "officially" defined of_fwnode_handle(). Therefore, the former can be dropped along with the last uses in the irqdomain code. Due to merge logistics the inline cannot be dropped immediately. Move it to a deprecated section, which will be removed during the merge window. [ tglx: Handle merge logistics ] Signed-off-by: Jiri Slaby (SUSE) Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20250319092951.37667-12-jirislaby@kernel.= org --- include/linux/irqdomain.h | 23 ++++++++++++----------- kernel/irq/irqdomain.c | 4 ++-- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index df7e927..91ed86f 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -358,11 +358,6 @@ int irq_domain_alloc_descs(int virq, unsigned int nr_i= rqs, irq_hw_number_t hwirq, int node, const struct irq_affinity_desc *affinity); =20 -static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *= node) -{ - return node ? &node->fwnode : NULL; -} - extern const struct fwnode_operations irqchip_fwnode_ops; =20 static inline bool is_fwnode_irqchip(const struct fwnode_handle *fwnode) @@ -387,7 +382,7 @@ struct irq_domain *irq_find_matching_fwnode(struct fwno= de_handle *fwnode, static inline struct irq_domain *irq_find_matching_host(struct device_node= *node, enum irq_domain_bus_token bus_token) { - return irq_find_matching_fwnode(of_node_to_fwnode(node), bus_token); + return irq_find_matching_fwnode(of_fwnode_handle(node), bus_token); } =20 static inline struct irq_domain *irq_find_host(struct device_node *node) @@ -407,7 +402,7 @@ static inline struct irq_domain *irq_domain_add_simple(= struct device_node *of_no const struct irq_domain_ops *ops, void *host_data) { - return irq_domain_create_simple(of_node_to_fwnode(of_node), size, first_i= rq, ops, host_data); + return irq_domain_create_simple(of_fwnode_handle(of_node), size, first_ir= q, ops, host_data); } =20 /** @@ -423,7 +418,7 @@ static inline struct irq_domain *irq_domain_add_linear(= struct device_node *of_no void *host_data) { struct irq_domain_info info =3D { - .fwnode =3D of_node_to_fwnode(of_node), + .fwnode =3D of_fwnode_handle(of_node), .size =3D size, .hwirq_max =3D size, .ops =3D ops, @@ -442,7 +437,7 @@ static inline struct irq_domain *irq_domain_add_nomap(s= truct device_node *of_nod void *host_data) { struct irq_domain_info info =3D { - .fwnode =3D of_node_to_fwnode(of_node), + .fwnode =3D of_fwnode_handle(of_node), .hwirq_max =3D max_irq, .direct_max =3D max_irq, .ops =3D ops, @@ -462,7 +457,7 @@ static inline struct irq_domain *irq_domain_add_tree(st= ruct device_node *of_node void *host_data) { struct irq_domain_info info =3D { - .fwnode =3D of_node_to_fwnode(of_node), + .fwnode =3D of_fwnode_handle(of_node), .hwirq_max =3D ~0U, .ops =3D ops, .host_data =3D host_data, @@ -611,7 +606,7 @@ static inline struct irq_domain *irq_domain_add_hierarc= hy(struct irq_domain *par void *host_data) { return irq_domain_create_hierarchy(parent, flags, size, - of_node_to_fwnode(node), + of_fwnode_handle(node), ops, host_data); } =20 @@ -755,6 +750,12 @@ static inline void msi_device_domain_free_wired(struct= irq_domain *domain, unsig } #endif =20 +/* Deprecated functions. Will be removed in the merge window */ +static inline struct fwnode_handle *of_node_to_fwnode(struct device_node *= node) +{ + return node ? &node->fwnode : NULL; +} + #else /* CONFIG_IRQ_DOMAIN */ static inline void irq_dispose_mapping(unsigned int virq) { } static inline struct irq_domain *irq_find_matching_fwnode( diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index b294c3f..0eb99d2 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -502,7 +502,7 @@ struct irq_domain *irq_domain_add_legacy(struct device_= node *of_node, const struct irq_domain_ops *ops, void *host_data) { - return irq_domain_create_legacy(of_node_to_fwnode(of_node), size, + return irq_domain_create_legacy(of_fwnode_handle(of_node), size, first_irq, first_hwirq, ops, host_data); } EXPORT_SYMBOL_GPL(irq_domain_add_legacy); @@ -885,7 +885,7 @@ void of_phandle_args_to_fwspec(struct device_node *np, = const u32 *args, { int i; =20 - fwspec->fwnode =3D of_node_to_fwnode(np); + fwspec->fwnode =3D of_fwnode_handle(np); fwspec->param_count =3D count; =20 for (i =3D 0; i < count; i++)