From nobody Thu Apr 2 20:52:58 2026 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 4E18E405AB5; Thu, 26 Mar 2026 16:00: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=1774540834; cv=none; b=ahzk4w4ZIQYAXYpjNyoGWP8kFQYpgcGjK7TNRf+12bDgb35qfliLSEVkojGufBl/SDTd2ALkVJix//s/vDvEs3FGH0UM5eXUqvthVqcnJVpUqRbj4sweDnbjDMuki5xKbyrxRW4L7JVapeq/WoAk1x+b78Ce86LBXR3dsaRFeJc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774540834; c=relaxed/simple; bh=g19qyVLd9lvLReK7z4bBWmnC3h5vp+FasGpIu4caFD0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=fC3CmxwCr5DA7vfAFbwe/Oqqorh5LJCLJT7pYlJF1UKuDWdCml+WNM0o7FbXOscuKi47jR+AqFxnrXF19HKVCWT3vA5AyEySfEXx2/l3xlldF/RLxbz84d/FsdUKnxxhv/dD4nNFGEhgvqqT+bEvTja+xdQpdvhqYHCGj62AtL4= 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=jkxZintW; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=tHtdu1iZ; 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="jkxZintW"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="tHtdu1iZ" Date: Thu, 26 Mar 2026 16:00:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774540832; 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=D7oOOlP5D7sOOqjdzT7YaIiTqTEin9GVXV770l3aMbg=; b=jkxZintWQWpsuEtRjSaPpePI70QWFmETQIMIWUBjEBBFEdLUQYZxa8+lL0EntteXMDchxd UOcSR4EPUlKaSv4VDi7oSXDd7S0xrb/RxzNL+Xtv4Jgpv/plG9e0lIaPilHhmYi+SsASwr 7at0y6fjxoZg21Xat4D2bcLGngOyRPa3zYi/cTcEm0ayDfII4UPZDUXcY3O7+5Dk7wDnvW pAms26nl7IgeAyLRQ2CFxXkPmTgVLfWBfMWuW6oU1Hyca0IUSYRLWiWTuDJC7og8uVrRRX zUuTPgxo40GYw3LypNzslcZ9g74/nrs8YoprG8Z6S5UUsSjoHb8F24SsUiRS8A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774540832; 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=D7oOOlP5D7sOOqjdzT7YaIiTqTEin9GVXV770l3aMbg=; b=tHtdu1iZjaJ+De0p+WEg6wiWyiy6DKltikWmyQupbgW5FYCs1fUQPVtf6Mw/TeqcplavVV O3SBuZgbHlRwjODg== From: "tip-bot2 for Biju Das" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/renesas-rzg2l: Dynamically allocate fwspec array Cc: Biju Das , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260325192451.172562-12-biju.das.jz@bp.renesas.com> References: <20260325192451.172562-12-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177454083062.1647592.14103646131203941690.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/drivers branch of tip: Commit-ID: b8e06e4e419bd3dd99f832d728f17007ada3359c Gitweb: https://git.kernel.org/tip/b8e06e4e419bd3dd99f832d728f17007a= da3359c Author: Biju Das AuthorDate: Wed, 25 Mar 2026 19:24:26=20 Committer: Thomas Gleixner CommitterDate: Thu, 26 Mar 2026 16:56:22 +01:00 irqchip/renesas-rzg2l: Dynamically allocate fwspec array The total number of interrupts in RZ/G2L and RZ/G3L SoC are different. The RZ/G3L has 16 external interrupts whereas RZ/G2L has only 8 external interrupts. Dynamically allocate fwspec memory instead of static allocation to support both SoCs. Signed-off-by: Biju Das Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260325192451.172562-12-biju.das.jz@bp.rene= sas.com --- drivers/irqchip/irq-renesas-rzg2l.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-renesas-rzg2l.c b/drivers/irqchip/irq-rene= sas-rzg2l.c index bb6400c..db5d1a5 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -81,7 +81,7 @@ static struct rzg2l_irqc_priv { void __iomem *base; const struct irq_chip *irq_chip; const struct irq_chip *tint_chip; - struct irq_fwspec fwspec[IRQC_NUM_IRQ]; + struct irq_fwspec *fwspec; raw_spinlock_t lock; struct rzg2l_irqc_reg_cache cache; } *rzg2l_irqc_data; @@ -630,6 +630,11 @@ static int rzg2l_irqc_common_probe(struct platform_dev= ice *pdev, struct device_n if (IS_ERR(rzg2l_irqc_data->base)) return PTR_ERR(rzg2l_irqc_data->base); =20 + rzg2l_irqc_data->fwspec =3D devm_kcalloc(&pdev->dev, IRQC_NUM_IRQ, + sizeof(*rzg2l_irqc_data->fwspec), GFP_KERNEL); + if (!rzg2l_irqc_data->fwspec) + return -ENOMEM; + ret =3D rzg2l_irqc_parse_interrupts(rzg2l_irqc_data, node); if (ret) return dev_err_probe(dev, ret, "cannot parse interrupts: %d\n", ret);