From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796266602; b=XtWE5RKRMhcQ//NQi5Vr+l04y6GIO2D4pyPViNexDkqATjWhPz0b1SKzDid7Wy+hKucI EMyLUH74YRt71/Vlwkt++FsQ0SN2ZHCELjFMTvZVy+fRrG5d+nescCindx8ytaWa5amDB 2QvVDrCTtaHfE+nbH+nARRqPsl6EioF+vWtBcZgy7AbCqLP1XbX/WIVl6UfuEp5ON492w QfrmuP6IA9/Kdvsjgz1bemwalzgcp6R4n5mgKAmcQbE1tnG5GQvzZMQk3QxbI/roAdGfp WCHMhw2NBRlrln6mj/fzRa0273Z0KCflc5hZlkYaEY1O7Vt4qgbWPAmEVs4vNB2Bohg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796266602; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=GU0YGGb1DVeHUdL5Wn/GUACDQvVYTdAH6f849uulGO0=; b=Gpgsc0VXv5XRkx5bsDsrShRfQQPdNm1b66OexkaA9lsk9oR6twp1FiN0lWjuGbYYkf0d 20MQ8U1Z7DfcIwC/G+o85VJeUFQicVVi3eUakXr0+CVUWdQYZF0xhe58W4jxD0s/XYVSd 27F1I6njY7dzOnWpXuiiqKJmwzMgWzi+cBeRPCOw+yZvQ9JKANv71CxQP6AnBnmCvd+C8 TlRcLC4VLqLWPgfS7dPlMjWH9hxYOT6fdximHMz64NzNqSPb7sQOim6EOYq3g2RubxD5T Ruka4MLSUY1DMF2aD58FXnIjB6nzvUiMCvvtbh4heurlfyZLcUIFScLL+FET0kePofg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K01QFaWt; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E5A1606A322; Thu, 3 Dec 2026 02:56:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K01QFaWt Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED6B51F00896; Thu, 3 Dec 2026 02:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796266602; bh=GU0YGGb1DVeHUdL5Wn/GUACDQvVYTdAH6f849uulGO0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=K01QFaWtRYBBeZw2mktYwiCs2fTtwIaK/lzts1CkfLdXZR/sy/4FpffDymrld7DQ4 4n+WUtbrTYf90xF/CcMdOISQOj+qSHwbqBuhr084lMw0vBclY64aQIncb9G5e4bMRy RE/agZDG2fiJ8YIPxSZGkOtYX/0TYWoQqbhNxnhsUA6iO53fuLpHcWY9Q4NabD3LrN 7pjGGLB5d2zwHp/bXqKTa3/gyKbs+RCwUwC6aoR302KBHGY2ioCp6V7lV9fKdCq8C7 dXorwFfCmyp/IjuQqlyceQRbcMVUfMOtMEYzNlmJhZjrMZHoN4VEVwpFjV3EG9Uhry f5VY5ZXGMqaJQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 1/3] pinctrl: sunxi: dt: number the IRQ banks from the first one that has IRQs Reply-To: sashiko-reviews@lists.linux.dev To: "Pablo Mazzini" Cc: linux-gpio@vger.kernel.org, linux-sunxi@lists.linux.dev In-Reply-To: <20261203024338.13729-2-pmazzini@gmail.com> References: <20261203024338.13729-1-pmazzini@gmail.com> <20261203024338.13729-2-pmazzini@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 02:56:41 +0000 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] pinctrl: sunxi: missing Fixes trailers for IRQ bank numbering fixes -- commit edff0a48a887db49edc17f8bfc19ed23fefd427e Author: Pablo Mazzini > pinctrl: sunxi: dt: number the IRQ banks from the first one that has IRQs > > prepare_function_table() starts counting the IRQ banks at bank 0, so > on SoCs without PortA the first IRQ bank gets number 1. On the A523 > and A733 this numbers PB to PK as 1 to 10, and PK is written past the > end of irq_array. Start counting at -1 instead, so that the IRQ banks > match the interrupts in the DT. > > irq_bank_map then maps them to the hardware, and both SoCs need one > for different reasons. The A523 does not implement PortA, but has IRQ > registers for it, which its map skips. The A733 uses the NCAT3 layout, > where the IRQ registers are part of the GPIO bank registers, so its > map gives the GPIO bank. Apply the map to that layout too, which so > far ignored it. > > Signed-off-by: Pablo Mazzini > Tested-by: Norman Herms # Radxa Cubie A7S (A733) > Reviewed-by: Alastair D'Silva > Tested-by: Alastair D'Silva # OrangePi 4 Pro [Severity: Low] This fixes an out-of-bounds write past pctl->irq_array and broken IRQ bank translation on the A523 and A733. Should this include: Fixes: f5e2cd34b12f ("pinctrl: sunxi: allow reading mux values from DT") Fixes: 648be4cd9517 ("pinctrl: sunxi: Add support for the Allwinner A523") Fixes: 3fa025dfe1e7 ("pinctrl: sunxi: support A733 generation MMIO regist= er layout") Fixes: 0535bfbfa97b ("pinctrl: sunxi: add support for the Allwinner A733") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203024338.1372= 9-1-pmazzini@gmail.com?part=3D1