From nobody Tue Feb 10 06:27:56 2026 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BFEE6283FD6 for ; Wed, 4 Feb 2026 14:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770215006; cv=none; b=S19hwh/uf2D9BW+eVK9IMATQm67BP+5uo61A/KY69t+L67l02KwdNhUHZK/ZgaUtK8+ZlHXWkpy0KM5zVeZXGmjgGRZx/PJOs1GRLz0HM/U9J2qUAEgqhv1KtN1cwcOBMjjqtjVtla3dEqSTnq690NStFfgvz/Und/wvl9kGiaU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770215006; c=relaxed/simple; bh=GQuhT/tYWweuUx5ujA6rRjXoqkczMUhSFVoDxDBYdc0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dOiMZ9upIvR2BaHp+/hMR+oHMbA79LYPUxjWr7nHsykk1u+q+E5bDd9cB2yqbP9jDQdFMUh2AeMkZYYlt+r/4eTuZyW1zi5r5fgH19y0us5IRu2oKfoTQqKQn4/T1e7QJXRWcXvQgfqA84/cacMdEJoJ/AS2t/CwvghnhBIJ+8o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=l9RXx/f0; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l9RXx/f0" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-b8850aa5b56so1108157366b.2 for ; Wed, 04 Feb 2026 06:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770215004; x=1770819804; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=epCayHlvCsfz7S+7gHZWH4Yw7IrAlRqKPfSc7t/2oH4=; b=l9RXx/f0R6PTeVYq+TUg2uupHyLLlVp6EXGlGwGmaUW49MMm+LwEnazq3nJFbvkeDo DRLLQervAf+n8FbjnpQ8suVOsimrIvVBr2KpKZb7AnR7nCHkGCxUfb369fowv/B0isKO g1m+7NDbtVD/96T4uzYFSa1bPgnP0lbyxo0suoIxvPOddTgpDFJFAnMbgF39CRCdLLb5 cSvX4RZSEAUOq+J3HzHx/XPtV+bGUNDnpZe0MyHKhSQkkEFZ1L4kcTBnKAs7F7YUQmSI 7SHYAMAC9LgVoAh2afa0e2FEjv5C/oP+hYqcT9nxQEMxU2rq2PqEoQG/9LHTN8OfvNrI KS6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770215004; x=1770819804; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=epCayHlvCsfz7S+7gHZWH4Yw7IrAlRqKPfSc7t/2oH4=; b=VZ0ls2aalu2uvRDK2Hj2h1vFs+Rir4z3V21qWfE9g8RKOChvJvLykampoDFytdpAHJ ajtoKDZ2ufbEmIVj5sTye4iDLLqA1I8ADWvOqtzQ801OH3ZdzTtSQQAl+Qs8aVlRu6It Pn47sw9MckMf6crWTVuA8zaimFnGzMMi3y1UDp4jy6WNVTolWd95w4t5ytiicdEbAl7h KmvvOEK8PAxjDvA/RBY67omRTXymG9Ff7uzgnz7gmK1z53QlkYO7mEp1nlnXxwcFpaVQ fsyudOKXxvlZAZ7TfMUITB6M9zYgpzjoX65DDAjkf64OmSDcGiGD2UU/+Ha7a06LCL0B Wpgg== X-Forwarded-Encrypted: i=1; AJvYcCWjP0YaFW9Xk/m38A8hqUgF2CdM9itN5gM9qie0gHdex0TPoHgRKVDX5baQcWamEVs7xJpM2Afi24vetZg=@vger.kernel.org X-Gm-Message-State: AOJu0YwkgwaQzVTPyoqR1x21BNvMTWZ6+3nEUnQSo9/6rfGrCiN/rYo2 FVsSb9AASityyWKW7DBz3UaDyfsqYcXjP92rx/BjmB9zY4mPgmgRsKS7 X-Gm-Gg: AZuq6aKxTE1d+Un/7j59zkIgoYX6yNneDh8VxT9gku+bN+1V2g5cNhMQAD6CSh2iWRu U6QdzZN2nFUx4Qd5SJVMEGJ7FKcIuGV7JSCxPbWRRwwgflPiqaOjXvsu9qzIqNt+gLlrAktOAmm CMgETXobhWln8dYBB37i0yIF1F43XL0lrlvDQxvkndT5RepHBXEilL5v4eKHccPQGgG+ozB88gR jgF51xrVjtNo5DYggDAY4rPWXwohS15T3go9ulWwtbYHlkf8xqbkkuI2j8o8DKUKGZrS0x2XTJ3 jiUQ3pZJfQnkklR5hgIcK8GQO8xodzdYK/rb2b9I3j2wClnhtaZClvVI7sIG4O09xvpeUbNBh6A JekhwFZQxOdASGST2Bb/650XU5PjO/VkcsvLNwsThiVTfU2GBWSP5XPCrrgcrMLoRv5jTsZAa7k c/vKcW8kYKSFDm9bnFoRIAaWWYsv71u7BZhvI= X-Received: by 2002:a17:907:26c3:b0:b8e:7e21:1344 with SMTP id a640c23a62f3a-b8e9f176d98mr186025866b.23.1770215004004; Wed, 04 Feb 2026 06:23:24 -0800 (PST) Received: from localhost.localdomain ([2a00:23c4:a758:8a01:3c9f:a100:4d45:ebc7]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8ea001ea7dsm129038366b.47.2026.02.04.06.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 06:23:23 -0800 (PST) From: Biju X-Google-Original-From: Biju To: Thomas Gleixner Cc: Biju Das , linux-kernel@vger.kernel.org, Geert Uytterhoeven , Prabhakar Mahadev Lad , Biju Das , linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/8] irqchip/renesas-rzg2l: Make fwspec variable as pointer in struct rzg2l_irqc_priv Date: Wed, 4 Feb 2026 14:23:10 +0000 Message-ID: <20260204142320.103184-3-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260204142320.103184-1-biju.das.jz@bp.renesas.com> References: <20260204142320.103184-1-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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Biju Das The total number of IRQs in RZ/G2L and RZ/G3L SoC are different. The RZ/G3L has 16 external IRQs where as RZ/G2L has only 8 external IRQ. Dynamicaly allocate fwspec memory instead of static allocation to support both SoCs. Signed-off-by: Biju Das --- 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 e73d426cea6d..20e2b1c4587b 100644 --- a/drivers/irqchip/irq-renesas-rzg2l.c +++ b/drivers/irqchip/irq-renesas-rzg2l.c @@ -79,7 +79,7 @@ struct rzg2l_irqc_reg_cache { static struct rzg2l_irqc_priv { void __iomem *base; const struct irq_chip *irqchip; - struct irq_fwspec fwspec[IRQC_NUM_IRQ]; + struct irq_fwspec *fwspec; raw_spinlock_t lock; struct rzg2l_irqc_reg_cache cache; } *rzg2l_irqc_data; @@ -554,6 +554,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); --=20 2.43.0