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=1796435966; b=rr1WZay+1Er5n0vKXnCluoBsymgeXf5PHvzFTK5Y+GPB86mhTztU+9WMr+HSVMtGlg3J gCdcctQCIfJYY8Qu7/1uwe+ehdZqAfbq/qhuJYmoLHel4zPs4/Obm5GBhUr8Bc7ObVtAw OH4bF+vQsTHPxMwGF3hmuIUirLxCRCfgyxVoj/VpDtLIoDa0WNQr+wjY0xCaDS+lEs8XK NKB2C2LtqaNxsyohL4ZlUTA1P9kRMcu4LeWSGgMoNC0YnjpMyi30+Ir3jw7Qr94l8O7pP VRGdXp5j2PD+RyUPUHu3NRa/dpDEYkmsdOE9xs5SU1eJr33FG26ApqbzvXtqGWYL4ig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796435966; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=FnAhIMTA7bplW7Xb6ShZV6k3cYQBDL3M6CWCL+ktCsI=; b=i+zdSIe4he3KHqVvJNZ3aIxYfNLt5qlt73SNup2UvHJMAprESSb0/a4JxAUvReNtEmR+ HM5A7O3JXgsfvX3wsxlKCA2wlng8U7ndm6YX8SMoFp09JfRgm88Vh+bAQHCAXeZhtzWGm FpjCxoow1z1LKjKzuHKhzcgnYhfH5vOF5OI58hcaeoosmceYIjV/bvd0YSyyd+jd+C+Vk LC5Nc3jnqqsJnuDlXeftRoe70gWg+CLe/TuxQR9B6ODFfHLJTcmKAjfnn7quV70Q1Wiqc OgZaQZEixQ590JgwASSrd0IlrvcbK62NuHcJm5Ah0Ht2YFUn8eBsTy0C0FJdSuasbbA== 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=Hw6Agk3M; 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 100E7606A322 for ; Sat, 5 Dec 2026 01:59:25 +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=Hw6Agk3M Received: by smtp.kernel.org (Postfix) with ESMTPSA id 865831F0092B; Sat, 5 Dec 2026 01:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796435965; bh=FnAhIMTA7bplW7Xb6ShZV6k3cYQBDL3M6CWCL+ktCsI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Hw6Agk3MnX3yGTpXbNhbHMGKAs5d88rhpG65tVBasax/L20CdCv8/2+0S2uH5V3P5 pfWLX4dMsArpPDMz4CGkXQ21eJiDWGFpur5RSUi3+G27s0YYrNzcbtyvOVsqjeGoeQ XfNO6nBsmkzJZ7x6JqpnhyzdpMNbMyzY93HuLkjo2y8VG+NyqMCpE9olRL20Y51o7v rAFnybbtV2Mrm9gcWHhtDhGqIY04ckgdPs9DBeEMZjJz087NxtsIpJfmXH/MZWCJyA 8+mDBkEYtM25SGB0gO9kEv+4v5yzvQoxkv/TGF9y7fN0CpRi/VOFP7x7wI2H4u+qES wfdy1AEcz8XAA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 2/3] soc: mediatek: mtk-pmic-pwrap: Skip WDT source and init on arbiter SoCs Reply-To: sashiko-reviews@lists.linux.dev To: "Ilia Snezhkov" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205014926.58916-3-iasnezhkov@gmail.com> References: <20261205014926.58916-1-iasnezhkov@gmail.com> <20261205014926.58916-3-iasnezhkov@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 01:59:25 +0000 X-Mailing-List: devicetree@vger.kernel.org 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] soc: mediatek: commit message misstates PWRAP_WDT_SRC_EN_1 behavior -- commit 93fd92c03533ad156a501191b1868701bbd3f7fe Author: Ilia Snezhkov soc: mediatek: mtk-pmic-pwrap: Skip WDT source and init on arbiter SoCs This commit extends the PWRAP_CAP_ARB guard in pwrap_probe() to skip the pwrap_init() fallback and the PWRAP_WDT_SRC_EN and PWRAP_WDT_SRC_EN_1 writes on arbiter SoCs. > However, pwrap_probe() only guarded PWRAP_WDT_UNIT with > !HAS_CAP(wrp->master->caps, PWRAP_CAP_ARB), leaving the writes to > PWRAP_WDT_SRC_EN and PWRAP_WDT_SRC_EN_1 unconditional. Because omitted > entries in static const int regs[] default to 0, those writes land at > offset 0x0 (PWRAP_INIT_DONE2) and overwrite it with wdt_src > (0xffffffff) on every probe. [Severity: Low] Is this description accurate for PWRAP_WDT_SRC_EN_1? pwrap_probe() already gates PWRAP_WDT_SRC_EN_1 with PWRAP_CAP_WDT_SRC1, which neither pwrap_mt6873 nor pwrap_mt8195 sets, so only PWRAP_WDT_SRC_EN was written on probe. In addition, PWRAP_WDT_SRC_EN_1 lies past the last initialized entry in mt6873_regs[] and mt8195_regs[], so indexing it would read out of bounds rather than yielding offset 0x0. The commit message could be tightened to note that only PWRAP_WDT_SRC_EN was written unconditionally while PWRAP_WDT_SRC_EN_1 is moved into the same block for consistency. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205014926.5891= 6-1-iasnezhkov@gmail.com?part=3D2