From nobody Mon Dec 15 21:29:37 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 D6E2428B4E1; Wed, 7 May 2025 13:44:19 +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=1746625461; cv=none; b=CYfXDqf6c8TA/Eaj3U62P/YRh2xEvZu7mWZkkPjKKPEIrAc5010cymJYKjKOmRcJpLu7UQM+Iw4gigbkAAkoOcXMHai/QPv1Zs1taoX+/NtWxN19MyPM515LJo8mN9fVeeTOTVTS4TgbEFThB0/ThytxF96xGgzsWph8vKTIM/I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746625461; c=relaxed/simple; bh=ftyQYCj8u9YYmitNRgTlhvDymCMfYb8lqbxz5/SimBQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=RTxRNNnqGqh61U0S9Yo+W7euu5ip/BsVKy1SpegMroF3ucgFUHdTmMy8Z233RNVoA2sSckmcBl1PNjliLBGF/X13vpIxJPDJqqPl0rewW5OiWrKjIiBCqYLn/w6TrLzg3KmLwDvXrbyO3lr3rcarHuKzKx8QS9SvfgM4/2wex30= 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=xUjxSZzQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cNvGM2xt; 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="xUjxSZzQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cNvGM2xt" Date: Wed, 07 May 2025 13:44:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746625458; 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=IrGZydZ0eWXJtjbVgiJLVoB3cYfiCuY2ssXITbUSxgI=; b=xUjxSZzQJ2iuYKPJi7CnKVVcVwCJL/65dp1zSw0dvOaSTCtTcYidP2qU+/qYSlXCBLbG4K OW6IT9nMqwjxsokmeY2Lz++nx4XZJdFguXOt8nYzlGUVnrVeQnnO2V6IWpW0i195c1tOIE tKQXcn7MMmpaetofyWUEEn8bY57p3D/vqUVq48k9bnmCsdeBURLYgBJWyXA87M/dtk/0kN K2DLeEZE2IvhRYKhnq38qUfuxGjyW1b8FIsoqeIojMXVFTQwHC9W5zXOJ1OVCj/NuFNePe 7sgBRlEleG4oINwEwQDx3glZcWUuExLRSfyhDG9AcbnCW0e6LKxaa3wRaeBGuw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746625458; 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=IrGZydZ0eWXJtjbVgiJLVoB3cYfiCuY2ssXITbUSxgI=; b=cNvGM2xtR95t29mpljPw82SVBF5ncZK4xqF4gerK7WhtG7+ciNw389L+AYvgolMtFr1Zk4 eg/4OBUuPUlFZlCg== 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] pinctrl: Switch to irq_domain_create_*() Cc: "Jiri Slaby (SUSE)" , Thomas Gleixner , Linus Walleij , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250319092951.37667-31-jirislaby@kernel.org> References: <20250319092951.37667-31-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: <174662545759.406.12563774121578665170.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: 1de046e6f09e5fec052e997e6e983d06814792e0 Gitweb: https://git.kernel.org/tip/1de046e6f09e5fec052e997e6e983d068= 14792e0 Author: Jiri Slaby (SUSE) AuthorDate: Wed, 19 Mar 2025 10:29:23 +01:00 Committer: Thomas Gleixner CommitterDate: Wed, 07 May 2025 15:39:40 +02:00 pinctrl: Switch to irq_domain_create_*() irq_domain_add_*() interfaces are going away as being obsolete now. Switch to the preferred irq_domain_create_*() ones. Those differ in the node parameter: They take more generic struct fwnode_handle instead of struct device_node. Therefore, of_fwnode_handle() is added around the original parameter. Note some of the users can likely use dev->fwnode directly instead of indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not guaranteed to be set for all, so this has to be investigated on case to case basis (by people who can actually test with the HW). [ tglx: Fix up subject prefix ] Signed-off-by: Jiri Slaby (SUSE) Signed-off-by: Thomas Gleixner Reviewed-by: Linus Walleij Link: https://lore.kernel.org/all/20250319092951.37667-31-jirislaby@kernel.= org --- drivers/pinctrl/mediatek/mtk-eint.c | 5 ++--- drivers/pinctrl/pinctrl-at91-pio4.c | 2 +- drivers/pinctrl/pinctrl-single.c | 9 +++++---- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 7 +++---- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/drivers/pinctrl/mediatek/mtk-eint.c b/drivers/pinctrl/mediatek= /mtk-eint.c index ced4ee5..8bbe2aa 100644 --- a/drivers/pinctrl/mediatek/mtk-eint.c +++ b/drivers/pinctrl/mediatek/mtk-eint.c @@ -565,9 +565,8 @@ int mtk_eint_do_init(struct mtk_eint *eint) goto err_eint; } =20 - eint->domain =3D irq_domain_add_linear(eint->dev->of_node, - eint->hw->ap_num, - &irq_domain_simple_ops, NULL); + eint->domain =3D irq_domain_create_linear(of_fwnode_handle(eint->dev->of_= node), + eint->hw->ap_num, &irq_domain_simple_ops, NULL); if (!eint->domain) goto err_eint; =20 diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-= at91-pio4.c index 8b01d31..e57ac4e 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -1206,7 +1206,7 @@ static int atmel_pinctrl_probe(struct platform_device= *pdev) dev_dbg(dev, "bank %i: irq=3D%d\n", i, ret); } =20 - atmel_pioctrl->irq_domain =3D irq_domain_add_linear(dev->of_node, + atmel_pioctrl->irq_domain =3D irq_domain_create_linear(of_fwnode_handle(d= ev->of_node), atmel_pioctrl->gpio_chip->ngpio, &irq_domain_simple_ops, NULL); if (!atmel_pioctrl->irq_domain) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-sin= gle.c index 5be14dc..5cda620 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -1611,15 +1611,16 @@ static int pcs_irq_init_chained_handler(struct pcs_= device *pcs, =20 /* * We can use the register offset as the hardirq - * number as irq_domain_add_simple maps them lazily. + * number as irq_domain_create_simple maps them lazily. * This way we can easily support more than one * interrupt per function if needed. */ num_irqs =3D pcs->size; =20 - pcs->domain =3D irq_domain_add_simple(np, num_irqs, 0, - &pcs_irqdomain_ops, - pcs_soc); + pcs->domain =3D irq_domain_create_simple(of_fwnode_handle(np), + num_irqs, 0, + &pcs_irqdomain_ops, + pcs_soc); if (!pcs->domain) { irq_set_chained_handler(pcs_soc->irq, NULL); return -EINVAL; diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/= pinctrl-sunxi.c index f1c5a99..bf8612d 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c @@ -1646,10 +1646,9 @@ int sunxi_pinctrl_init_with_flags(struct platform_de= vice *pdev, } } =20 - pctl->domain =3D irq_domain_add_linear(node, - pctl->desc->irq_banks * IRQ_PER_BANK, - &sunxi_pinctrl_irq_domain_ops, - pctl); + pctl->domain =3D irq_domain_create_linear(of_fwnode_handle(node), + pctl->desc->irq_banks * IRQ_PER_BANK, + &sunxi_pinctrl_irq_domain_ops, pctl); if (!pctl->domain) { dev_err(&pdev->dev, "Couldn't register IRQ domain\n"); ret =3D -ENOMEM;