From nobody Mon Dec 15 21:29:36 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 7BF3A283FCB; Fri, 16 May 2025 19:37:33 +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=1747424255; cv=none; b=ivWa+Nqrip/8mhGlyEH6ygwsV8V23Q6M/EkKCiiBkQRVSHMJeBYq2z2fjN6r4HGzZZ9BqWiq5dQtsIHHO16tJyKJVkcupfHQtUA3N9p25agcECJxfbAExU4jfdnSelaQK3V06lcvLpzMc8e3Q3BMhchPPA5OlE/fAN8+zRvxb8Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747424255; c=relaxed/simple; bh=INnwyw/oh1gPWrim79M4IMgkD3dUpyK9ZIc5HkSEzFE=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=JZo37SgwpIlZdtZbAs1+A/vn5tr3AHNzw4BinhZczJuxF2b504DCREI69q+kGamQylRAXLjzur3eykfVuOT/2bzFlgVrGiQesYmkhK6dOnF+1x96cWtuZAZZjMXGx0WYFa7fpEvoEKpLwzot9jrZP7oqV31QJTo9ttrEU2Olke8= 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=p9b2pOm7; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=KVGEY9Ls; 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="p9b2pOm7"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="KVGEY9Ls" Date: Fri, 16 May 2025 19:37:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1747424252; 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=r+Xx/zUQZVnkdkELJ0MlZo3iiRm+j0VJfIlZbEhlYp4=; b=p9b2pOm78ZNdubaC3aglSzOtxueKZuMCAkGsDpe6VMBLm4FvYr/2abwMNSJMecglXF411/ +9g/nzzFsxjvybd4cX6gikhXw/mM/FbqCbntTN4xp2GOItdAZnW3mGmPhGbw2O6fljY/yk qmxMrHVuRkQgQMy00LVrxqRn4mUrYv1mlLVNHueIoCgEd1i83bDLt4lOJEzGoE4ihVaQPK uYJK/ZgFSZEQRME6wini/rVf7QRXxfmMiXOUYC3oQ9MApAXnsIiAiuXEmAfPpBRA67Unm8 PA656Qlur7Fj6nv95FdyIByjqXlTlztVJWhg/JameUys3RxdAPGUPl9maRcU4A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1747424252; 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=r+Xx/zUQZVnkdkELJ0MlZo3iiRm+j0VJfIlZbEhlYp4=; b=KVGEY9LsMrgslOJ0NZXjPrEFnwyNnwf6/TZLG/sQ1WWmaqc/d7fT1S8m8h/eKXM/MN7IsK ghDs1D+3uVA4+kBA== 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] sh: Switch to irq_domain_create_*() Cc: "Jiri Slaby (SUSE)" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250319092951.37667-34-jirislaby@kernel.org> References: <20250319092951.37667-34-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: <174742425127.406.13179373659776580621.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: b625f934ba1c4c7feb026a484564b1f922f254c2 Gitweb: https://git.kernel.org/tip/b625f934ba1c4c7feb026a484564b1f92= 2f254c2 Author: Jiri Slaby (SUSE) AuthorDate: Wed, 19 Mar 2025 10:29:26 +01:00 Committer: Thomas Gleixner CommitterDate: Fri, 16 May 2025 21:06:11 +02:00 sh: 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 Link: https://lore.kernel.org/all/20250319092951.37667-34-jirislaby@kernel.= org --- arch/sh/boards/mach-se/7343/irq.c | 5 +++-- arch/sh/boards/mach-se/7722/irq.c | 2 +- arch/sh/boards/mach-x3proto/gpio.c | 2 +- drivers/sh/intc/irqdomain.c | 5 ++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/sh/boards/mach-se/7343/irq.c b/arch/sh/boards/mach-se/734= 3/irq.c index f9f3b14..8241bde 100644 --- a/arch/sh/boards/mach-se/7343/irq.c +++ b/arch/sh/boards/mach-se/7343/irq.c @@ -47,8 +47,9 @@ static void __init se7343_domain_init(void) { int i; =20 - se7343_irq_domain =3D irq_domain_add_linear(NULL, SE7343_FPGA_IRQ_NR, - &irq_domain_simple_ops, NULL); + se7343_irq_domain =3D irq_domain_create_linear(NULL, SE7343_FPGA_IRQ_NR, + &irq_domain_simple_ops, + NULL); if (unlikely(!se7343_irq_domain)) { printk("Failed to get IRQ domain\n"); return; diff --git a/arch/sh/boards/mach-se/7722/irq.c b/arch/sh/boards/mach-se/772= 2/irq.c index efa96ed..9a460a8 100644 --- a/arch/sh/boards/mach-se/7722/irq.c +++ b/arch/sh/boards/mach-se/7722/irq.c @@ -46,7 +46,7 @@ static void __init se7722_domain_init(void) { int i; =20 - se7722_irq_domain =3D irq_domain_add_linear(NULL, SE7722_FPGA_IRQ_NR, + se7722_irq_domain =3D irq_domain_create_linear(NULL, SE7722_FPGA_IRQ_NR, &irq_domain_simple_ops, NULL); if (unlikely(!se7722_irq_domain)) { printk("Failed to get IRQ domain\n"); diff --git a/arch/sh/boards/mach-x3proto/gpio.c b/arch/sh/boards/mach-x3pro= to/gpio.c index f82d3a6..c13d51b 100644 --- a/arch/sh/boards/mach-x3proto/gpio.c +++ b/arch/sh/boards/mach-x3proto/gpio.c @@ -108,7 +108,7 @@ int __init x3proto_gpio_setup(void) if (unlikely(ret)) goto err_gpio; =20 - x3proto_irq_domain =3D irq_domain_add_linear(NULL, NR_BASEBOARD_GPIOS, + x3proto_irq_domain =3D irq_domain_create_linear(NULL, NR_BASEBOARD_GPIOS, &x3proto_gpio_irq_ops, NULL); if (unlikely(!x3proto_irq_domain)) goto err_irq; diff --git a/drivers/sh/intc/irqdomain.c b/drivers/sh/intc/irqdomain.c index 3968f1c..ed7a570 100644 --- a/drivers/sh/intc/irqdomain.c +++ b/drivers/sh/intc/irqdomain.c @@ -59,10 +59,9 @@ void __init intc_irq_domain_init(struct intc_desc_int *d, * tree penalty for linear cases with non-zero hwirq bases. */ if (irq_base =3D=3D 0 && irq_end =3D=3D (irq_base + hw->nr_vectors - 1)) - d->domain =3D irq_domain_add_linear(NULL, hw->nr_vectors, - &intc_evt_ops, NULL); + d->domain =3D irq_domain_create_linear(NULL, hw->nr_vectors, &intc_evt_o= ps, NULL); else - d->domain =3D irq_domain_add_tree(NULL, &intc_evt_ops, NULL); + d->domain =3D irq_domain_create_tree(NULL, &intc_evt_ops, NULL); =20 BUG_ON(!d->domain); }