From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C65D606A32A for ; Thu, 19 Nov 2026 23:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=dUEm8qaD DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=BHZ87I4xB4zS2G/9KYOvToulTtpf2LsoVgn3bT5ySVs=; b=dUEm8qaDQtvR/H/qFwDeZYjUfw GDwRzI8lqdRD+A1pIbY0vGL86/7sM/QFEz/Dm79pvCXxsDwJPV/HWI4+CLmu81WfryUuoMb2NYzka 9hJhg5rz8iZoofxuSzlMv3Yn0PsNok3/6ubAKnom6xIsu6HwFsCuLHDHC1weQLT6fGvKqKoVRMrl4 Xjd9QOgIwq3h84vUeBjM93/zh/Uk47hSPNAge4sJANSthwTZ8mCgG2Z1j+cmSWRDxfK4bj/kC7LJ0 isBjjq9eWRW27Wae92cUiGw7CAyREOeSTol5lKHghgIac6Koj9gfUoF3DdSBAxlNUHayc+1guL/js xykqObVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xUB9B-0000000Dd8n-1MRU; Thu, 19 Nov 2026 23:02:29 +0000 Received: from pidgin.makrotopia.org ([2a07:2ec0:3002::65]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xUB97-0000000Dd7W-3bAB; Thu, 19 Nov 2026 23:02:27 +0000 Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256:X25519MLKEM768) (Exim 4.100.1) (envelope-from ) id 1xUB91-000000001j1-38dY; Thu, 19 Nov 2026 23:02:19 +0000 Date: Thu, 19 Nov 2026 23:01:59 +0000 From: Daniel Golle To: Lee Jones Cc: Sean Wang , Linus Walleij , Matthias Brugger , AngeloGioacchino Del Regno , Sam Shih , Rob Herring , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, stable@vger.kernel.org Subject: Re: [PATCH v2 3/6] pinctrl: mediatek: mt7981: Add missing entries to mt7981_ant_sel_funcs Message-ID: References: <20261119204748.2558209-1-lee@kernel.org> <20261119204748.2558209-4-lee@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261119204748.2558209-4-lee@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261119_150225_892087_528CB667 X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Nov 19, 2026 at 08:47:18PM +0000, Lee Jones wrote: > mt7981_ant_sel_pins[] defines 14 pins (pins 14..25, 34, and 35), all of > which select ANT_SEL at function mux mode 6, but mt7981_ant_sel_funcs[] > only contains 12 entries. When mtk_pinmux_set_mux() iterates over > grp->grp.npins (14), it reads two int elements past the end of > mt7981_ant_sel_funcs[]. > > Add the two missing mode 6 entries to mt7981_ant_sel_funcs[] so its > length matches mt7981_ant_sel_pins[]. > > Fixes: 6c83b2d94fcc ("pinctrl: add mt7981 pinctrl driver") > Closes: https://sashiko.dev/#/bug/linux-6233f285-1487-4d2d-afe3-d4ce3c445054 > Cc: stable@vger.kernel.org > Signed-off-by: Lee Jones Reviewed-by: Daniel Golle