From nobody Thu Apr 2 20:38:41 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 68EF5405AC4; Thu, 26 Mar 2026 16:00:29 +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=1774540830; cv=none; b=CaeCbB1Twg+ZLZVNN+CRxq4RRMX8B8z9VqpG2F/k2ZzsYKOVFbgJIOlUbqgi4hLm9es98UK15WJt6qUaAx7pSRUihwK+FGJe/0Zmg7b4n6ZBmKeOuNRK1GcLXJQYw6ksnaYWV1W9VJ6+MFCmankOGXgBk64HfSzecF07ehTiLaE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774540830; c=relaxed/simple; bh=mQghG03EdqNk9bAUf/pfz2Rbey3mHVeb/AI7o4GMupo=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=es04V3wbVvlZvesvkDAe0QeUC0qbqJvIWqmHXl3NEFuJSQQ603xBcJnh4JdsUmvuiGW/U+txfnWjxx1f4QtwY1k7dcSp6++fd5WWtJzsyNTZj8Xyp0qzNAi4k+31/YhXzIlaTYHZDueJgLQvZD5FXlBshGOVjG64/LBQd94Lx8U= 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=yqcIAmNo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2qVdFgNd; 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="yqcIAmNo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2qVdFgNd" Date: Thu, 26 Mar 2026 16:00:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774540827; 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=dmEenfpPRqJzLfd65hZSlOtkChokiWa1J2xCQWQuYaI=; b=yqcIAmNohOYlnxgXeQtmkyxgyE3psQ9dNzxXD2aDi57z63yJJEhNVDmN8Mjxdcei/qgtd6 CtMXQk2s0jzAWZl4Af3ZhZhfi91MVjrJQ7jR8JucOgy69Thm8YlXWlKP2XAIToakbPxRGi RHVbfZLAk7Lvvju58MKbZ+dtSnGkyRq4YyXH+M2rYrutoEZis9aNNAoGLWfQe0s9fz0rCR EHTH0D/EbwxncGW+4Q/RtUn4dKLOFEjLwUnll+jxkD8/n2vzqTHt/aU00adzlk7MVyovBq eOT16b+4pgX3/k5G1OoOmNUFIiXmOu+9ZyTsfqkw+FPC1vsQIm6EizGWPJDY/A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774540827; 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=dmEenfpPRqJzLfd65hZSlOtkChokiWa1J2xCQWQuYaI=; b=2qVdFgNdgG91xkDUXO1KNKNoES3+zjhgTo5yaJ/qIVl3P9SDKI6xlaZ1ICGrZrmOPKMkl9 ego3XXmo29h8HfDA== 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: Drop IRQC_IRQ_COUNT macro Cc: Biju Das , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260325192451.172562-15-biju.das.jz@bp.renesas.com> References: <20260325192451.172562-15-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: <177454082643.1647592.12560161061387013567.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: f9544cad3600f251a7d24c2fb77e7f2abdceb42e Gitweb: https://git.kernel.org/tip/f9544cad3600f251a7d24c2fb77e7f2ab= dceb42e Author: Biju Das AuthorDate: Wed, 25 Mar 2026 19:24:29=20 Committer: Thomas Gleixner CommitterDate: Thu, 26 Mar 2026 16:56:23 +01:00 irqchip/renesas-rzg2l: Drop IRQC_IRQ_COUNT macro The total number of external 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. Add irq_count variable in struct rzg2l_hw_info to handle these differences and drop the macro IRQC_IRQ_COUNT. Signed-off-by: Biju Das Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260325192451.172562-15-biju.das.jz@bp.rene= sas.com --- drivers/irqchip/irq-renesas-rzg2l.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/irqchip/irq-renesas-rzg2l.c b/drivers/irqchip/irq-rene= sas-rzg2l.c index 06caa22..5387e90 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -21,7 +21,6 @@ #include =20 #define IRQC_IRQ_START 1 -#define IRQC_IRQ_COUNT 8 #define IRQC_TINT_COUNT 32 =20 #define ISCR 0x10 @@ -68,10 +67,12 @@ struct rzg2l_irqc_reg_cache { =20 /** * struct rzg2l_hw_info - Interrupt Control Unit controller hardware info = structure. + * @irq_count: Number of IRQC interrupts * @tint_start: Start of TINT interrupts * @num_irq: Total Number of interrupts */ struct rzg2l_hw_info { + unsigned int irq_count; unsigned int tint_start; unsigned int num_irq; }; @@ -573,7 +574,7 @@ static int rzg2l_irqc_alloc(struct irq_domain *domain, = unsigned int virq, * from 16-31 bits. TINT from the pinctrl driver needs to be programmed * in IRQC registers to enable a given gpio pin as interrupt. */ - if (hwirq > IRQC_IRQ_COUNT) { + if (hwirq > priv->info.irq_count) { tint =3D TINT_EXTRACT_GPIOINT(hwirq); hwirq =3D TINT_EXTRACT_HWIRQ(hwirq); chip =3D priv->tint_chip; @@ -681,8 +682,9 @@ static int rzg2l_irqc_common_probe(struct platform_devi= ce *pdev, struct device_n } =20 static const struct rzg2l_hw_info rzg2l_hw_params =3D { - .tint_start =3D IRQC_IRQ_START + IRQC_IRQ_COUNT, - .num_irq =3D IRQC_IRQ_START + IRQC_IRQ_COUNT + IRQC_TINT_COUNT, + .irq_count =3D 8, + .tint_start =3D IRQC_IRQ_START + 8, + .num_irq =3D IRQC_IRQ_START + 8 + IRQC_TINT_COUNT, }; =20 static int rzg2l_irqc_probe(struct platform_device *pdev, struct device_no= de *parent)