From nobody Tue Dec 16 15:44:25 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 2F0642857FB; Tue, 6 May 2025 13:20: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=1746537635; cv=none; b=raVYgLHO0JA6kmjS/va+IHG5cZ1b9hB3j0Tc/0wlz+j62bTjm3Aj2wuMTsmXsATWh8E9v2FEJtdJQzH+Yvd6fDF2y7W3zzDKbV3vZPhfEknoSIp7JX/5FdWjZN6cXQHKANtNmM10tJm31hyUP0ZoJEuHzvRWolIYLGevLwGx5p0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746537635; c=relaxed/simple; bh=rU61z/rMSfExJ6qUfT74Bc91rIt1qPAW6ig4FDZX4/I=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Ac+Ck7IpeJ3LItGR6qO72+spwmIqWnyUOcm551cj5i6vXQ3w9NcoUo2voKwZkqAYnwduFu99G+FxvvXN0IM0fvtMLKNmwW8/r7XcpV6gThK+YyJcweTEjSNnmskYjjvNa+rYL17qiJ2g/VAXNgWPmETqken26jBO6yfkj6O9CeI= 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=J0TybGxa; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=sK9MkwFw; 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="J0TybGxa"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="sK9MkwFw" Date: Tue, 06 May 2025 13:20:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746537631; 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=y+GuQ20JsCOn78N7rIoi7HOEjlQxyB4Qq73nj+pXJuE=; b=J0TybGxaYiG2nvlvdLoOULF26QB/qRTq/KS1hGGVjRkx/ztFIsB5ReaSw663/apIWvjnph fMw7BVTvVsq/qOENoRadeqHW6/6zp7z4XyknwJAVda9ujqFiFX16/6lJtSnzD+dXDS/vG9 fmSCktEfDE/ezSetdD6kMheSlHAHxEGzNJ8+XK8TcYv/bGTclHjeBDic2CMFlZWprPaI55 ZBdipXbDgw75Nhf3ssyCsRHGDGdvIrXVIAe1zwSjJhYm2BqKyRMsFL8erdGW0j2OZ+KXI3 Xcq/QoKFNgOn/CCtCQ2VRrR3c30/t9zeHZUTY3RwnQV/0FhHPnjxrOt9IZcLVw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746537631; 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=y+GuQ20JsCOn78N7rIoi7HOEjlQxyB4Qq73nj+pXJuE=; b=sK9MkwFwa3eIRRjIPfsZkMP0pZQkNn5JIL/joRCkE1lq4WCndtk4+zkXyaWTesBTDTg0ci 1YY6zVD4kXOI35DQ== 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] MIPS: Switch to irq_domain_create_*() Cc: "Jiri Slaby (SUSE)" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250319092951.37667-26-jirislaby@kernel.org> References: <20250319092951.37667-26-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: <174653763088.406.13650270374969089641.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: d2c84bca14d99760a8b4fb3fe2808277af62586d Gitweb: https://git.kernel.org/tip/d2c84bca14d99760a8b4fb3fe2808277a= f62586d Author: Jiri Slaby (SUSE) AuthorDate: Wed, 19 Mar 2025 10:29:18 +01:00 Committer: Thomas Gleixner CommitterDate: Tue, 06 May 2025 14:59:06 +02:00 MIPS: 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). Signed-off-by: Jiri Slaby (SUSE) Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20250319092951.37667-26-jirislaby@kernel.= org --- arch/mips/ath25/ar2315.c | 4 ++-- arch/mips/ath25/ar5312.c | 4 ++-- arch/mips/cavium-octeon/octeon-irq.c | 25 +++++++++++++------------ arch/mips/lantiq/irq.c | 2 +- arch/mips/pci/pci-ar2315.c | 4 ++-- arch/mips/pci/pci-rt3883.c | 7 ++++--- arch/mips/ralink/irq.c | 2 +- 7 files changed, 25 insertions(+), 23 deletions(-) diff --git a/arch/mips/ath25/ar2315.c b/arch/mips/ath25/ar2315.c index 8ccf167..e8c38aa 100644 --- a/arch/mips/ath25/ar2315.c +++ b/arch/mips/ath25/ar2315.c @@ -149,8 +149,8 @@ void __init ar2315_arch_init_irq(void) =20 ath25_irq_dispatch =3D ar2315_irq_dispatch; =20 - domain =3D irq_domain_add_linear(NULL, AR2315_MISC_IRQ_COUNT, - &ar2315_misc_irq_domain_ops, NULL); + domain =3D irq_domain_create_linear(NULL, AR2315_MISC_IRQ_COUNT, + &ar2315_misc_irq_domain_ops, NULL); if (!domain) panic("Failed to add IRQ domain"); =20 diff --git a/arch/mips/ath25/ar5312.c b/arch/mips/ath25/ar5312.c index cfa1035..4a1d874 100644 --- a/arch/mips/ath25/ar5312.c +++ b/arch/mips/ath25/ar5312.c @@ -143,8 +143,8 @@ void __init ar5312_arch_init_irq(void) =20 ath25_irq_dispatch =3D ar5312_irq_dispatch; =20 - domain =3D irq_domain_add_linear(NULL, AR5312_MISC_IRQ_COUNT, - &ar5312_misc_irq_domain_ops, NULL); + domain =3D irq_domain_create_linear(NULL, AR5312_MISC_IRQ_COUNT, + &ar5312_misc_irq_domain_ops, NULL); if (!domain) panic("Failed to add IRQ domain"); =20 diff --git a/arch/mips/cavium-octeon/octeon-irq.c b/arch/mips/cavium-octeon= /octeon-irq.c index e6b4d9c..5c3de17 100644 --- a/arch/mips/cavium-octeon/octeon-irq.c +++ b/arch/mips/cavium-octeon/octeon-irq.c @@ -1503,8 +1503,8 @@ static int __init octeon_irq_init_ciu( /* Mips internal */ octeon_irq_init_core(); =20 - ciu_domain =3D irq_domain_add_tree( - ciu_node, &octeon_irq_domain_ciu_ops, dd); + ciu_domain =3D irq_domain_create_tree(of_fwnode_handle(ciu_node), &octeon= _irq_domain_ciu_ops, + dd); irq_set_default_domain(ciu_domain); =20 /* CIU_0 */ @@ -1637,8 +1637,8 @@ static int __init octeon_irq_init_gpio( if (gpiod) { /* gpio domain host_data is the base hwirq number. */ gpiod->base_hwirq =3D base_hwirq; - irq_domain_add_linear( - gpio_node, 16, &octeon_irq_domain_gpio_ops, gpiod); + irq_domain_create_linear(of_fwnode_handle(gpio_node), 16, + &octeon_irq_domain_gpio_ops, gpiod); } else { pr_warn("Cannot allocate memory for GPIO irq_domain.\n"); return -ENOMEM; @@ -2074,8 +2074,8 @@ static int __init octeon_irq_init_ciu2( /* Mips internal */ octeon_irq_init_core(); =20 - ciu_domain =3D irq_domain_add_tree( - ciu_node, &octeon_irq_domain_ciu2_ops, NULL); + ciu_domain =3D irq_domain_create_tree(of_fwnode_handle(ciu_node), &octeon= _irq_domain_ciu2_ops, + NULL); irq_set_default_domain(ciu_domain); =20 /* CUI2 */ @@ -2331,11 +2331,12 @@ static int __init octeon_irq_init_cib(struct device= _node *ciu_node, } host_data->max_bits =3D val; =20 - cib_domain =3D irq_domain_add_linear(ciu_node, host_data->max_bits, - &octeon_irq_domain_cib_ops, - host_data); + cib_domain =3D irq_domain_create_linear(of_fwnode_handle(ciu_node), + host_data->max_bits, + &octeon_irq_domain_cib_ops, + host_data); if (!cib_domain) { - pr_err("ERROR: Couldn't irq_domain_add_linear()\n"); + pr_err("ERROR: Couldn't irq_domain_create_linear()\n"); return -ENOMEM; } =20 @@ -2918,8 +2919,8 @@ static int __init octeon_irq_init_ciu3(struct device_= node *ciu_node, * Initialize all domains to use the default domain. Specific major * blocks will overwrite the default domain as needed. */ - domain =3D irq_domain_add_tree(ciu_node, &octeon_dflt_domain_ciu3_ops, - ciu3_info); + domain =3D irq_domain_create_tree(of_fwnode_handle(ciu_node), &octeon_dfl= t_domain_ciu3_ops, + ciu3_info); for (i =3D 0; i < MAX_CIU3_DOMAINS; i++) ciu3_info->domain[i] =3D domain; =20 diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index 8f20800..a112573 100644 --- a/arch/mips/lantiq/irq.c +++ b/arch/mips/lantiq/irq.c @@ -377,7 +377,7 @@ int __init icu_of_init(struct device_node *node, struct= device_node *parent) for (i =3D 0; i < MAX_IM; i++) irq_set_chained_handler(i + 2, ltq_hw_irq_handler); =20 - ltq_domain =3D irq_domain_add_linear(node, + ltq_domain =3D irq_domain_create_linear(of_fwnode_handle(node), (MAX_IM * INT_NUM_IM_OFFSET) + MIPS_CPU_IRQ_CASCADE, &irq_domain_ops, 0); =20 diff --git a/arch/mips/pci/pci-ar2315.c b/arch/mips/pci/pci-ar2315.c index a925842..17fa97e 100644 --- a/arch/mips/pci/pci-ar2315.c +++ b/arch/mips/pci/pci-ar2315.c @@ -469,8 +469,8 @@ static int ar2315_pci_probe(struct platform_device *pde= v) if (err) return err; =20 - apc->domain =3D irq_domain_add_linear(NULL, AR2315_PCI_IRQ_COUNT, - &ar2315_pci_irq_domain_ops, apc); + apc->domain =3D irq_domain_create_linear(NULL, AR2315_PCI_IRQ_COUNT, + &ar2315_pci_irq_domain_ops, apc); if (!apc->domain) { dev_err(dev, "failed to add IRQ domain\n"); return -ENOMEM; diff --git a/arch/mips/pci/pci-rt3883.c b/arch/mips/pci/pci-rt3883.c index 4ac68a5..14454ec 100644 --- a/arch/mips/pci/pci-rt3883.c +++ b/arch/mips/pci/pci-rt3883.c @@ -208,9 +208,10 @@ static int rt3883_pci_irq_init(struct device *dev, rt3883_pci_w32(rpc, 0, RT3883_PCI_REG_PCIENA); =20 rpc->irq_domain =3D - irq_domain_add_linear(rpc->intc_of_node, RT3883_PCI_IRQ_COUNT, - &rt3883_pci_irq_domain_ops, - rpc); + irq_domain_create_linear(of_fwnode_handle(rpc->intc_of_node), + RT3883_PCI_IRQ_COUNT, + &rt3883_pci_irq_domain_ops, + rpc); if (!rpc->irq_domain) { dev_err(dev, "unable to add IRQ domain\n"); return -ENODEV; diff --git a/arch/mips/ralink/irq.c b/arch/mips/ralink/irq.c index 46aef0a..af5bbbe 100644 --- a/arch/mips/ralink/irq.c +++ b/arch/mips/ralink/irq.c @@ -176,7 +176,7 @@ static int __init intc_of_init(struct device_node *node, /* route all INTC interrupts to MIPS HW0 interrupt */ rt_intc_w32(0, INTC_REG_TYPE); =20 - domain =3D irq_domain_add_legacy(node, RALINK_INTC_IRQ_COUNT, + domain =3D irq_domain_create_legacy(of_fwnode_handle(node), RALINK_INTC_I= RQ_COUNT, RALINK_INTC_IRQ_BASE, 0, &irq_domain_ops, NULL); if (!domain) panic("Failed to add irqdomain");