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=1796379715; b=LLPPaiHiQ01Y7MF0sjwip+SkC5HmQmoX8tY+G/WVb+9MDz4PGlRc9OeJoBFo4eo8OczU WJs3rED+p2T/9HwKiA68SXpaEfiCi6m/31/dIFuE2uoq9t/gE43YM2WuAOYDIyU5Q8Q4a Cz9/i6HQMX4u4KfbKQBBbecpf2CE4plLBmPR+ZEogPNiOZrP9lMFv3MneGxJC0yo1TckX yhknZ8ELT7QTjgh5vRLuousSEKYgeU48cnxPc/Mp/ASiynNt3tnuRRuvRa+sEae3+Y1L4 uVsbqZafLXim8L1jtx67WC0LFmOd/1wmW9enuX2v53AUElc4Qrl9zR+BSfvNHQr6Pqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379715; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=n05b+pAaZJe2L61Gl3BFyWvNIoJDOAPSNHTWhU2259c=; b=ne/vP5QUsarDPq5L0W68d+VUk4aPShGmaRKFcGB72H3ce2H3EYxVbwEFsbK5/AO6ldQS QpkCmWg/uckJae0YLKLYIARFt/W2YBXijRFz7jxB+6BI1bDbniM2jKmSZoesVjTRfuUQT +6syvh3sx+hdDKkFzyZYtpc8gCs7VURYvrMPIPmVnUuw3hxwxPnAa3LLkp7/GakcBdLAO BM2P2fZk+Q/dEMZY4RfObD5MrG+2wBDZO4xsA3tMS/xTVnc7dNyy7YzOKfzGvuzv7ueud NU139YWhe857ksaGaFTjfNdxQuiGcbhcTQ8ugWA0bKTlXOxj7pcGWRBrIa8d0lTW3Aw== 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=Uutzrc0n; 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 38218606A322 for ; Fri, 4 Dec 2026 10:21:55 +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=Uutzrc0n Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2D541F000C2; Fri, 4 Dec 2026 10:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796379715; bh=n05b+pAaZJe2L61Gl3BFyWvNIoJDOAPSNHTWhU2259c=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Uutzrc0ng5wxB/lCYiObQL4cfHL8G6kOfe+gM9mPYiRPfzaY38KKsdkmD4I1G3wLv Dq9kQVPIvQiSNuwtfGwsjAYA1s52qjcscCoxxTQ7d4wSKK5SCnLf17puyVi6qpbzu0 v6MV2OLN1HSRoggx7OQYyR7XEJgta0PyPpGT/VUh8fv8xH4Ydtp8mvm+DSreIkWW5M B0aXhrFFsk0OCzGWI9FBMzQTBif5b5XZj6eZp3kGmLX2eKvF63jX57pgQKNfCwKtIW T3FjFyzlY0rdukchP7wFid1qa53p2un3dbodhKqwu/dG28c1dGlCpS3je9MYdLuuKO CLpVK52aPPQXQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 6/6] thermal/drivers/samsung: acpm-tmu: add .get_trend() Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?QW5kcsOpIERyYXN6aWs=?= Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204-b4-acpm-tmu-irq-storm-v2-6-614fe39140ce@linaro.org> References: <20261204-b4-acpm-tmu-irq-storm-v2-0-614fe39140ce@linaro.org> <20261204-b4-acpm-tmu-irq-storm-v2-6-614fe39140ce@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 10:21:54 +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] thermal: samsung: acpm-tmu: misleading lock comment for enabled field -- commit 9274d2c76141cde5cf418c0a8513c6b4c3588d49 Author: Andr=C3=A9 Draszik thermal/drivers/samsung: acpm-tmu: add .get_trend() This commit adds a .get_trend() callback to the Samsung ACPM TMU driver that caches the last .get_temp() reading and reports a rising or dropping trend relative to the trip temperature. > diff --git a/drivers/thermal/samsung/acpm-tmu.c b/drivers/thermal/samsung= /acpm-tmu.c > index ff7a07dbd58aa..5c3285f0bd200 100644 > --- a/drivers/thermal/samsung/acpm-tmu.c > +++ b/drivers/thermal/samsung/acpm-tmu.c > @@ -77,8 +77,9 @@ struct acpm_tmu_sensor { > struct acpm_tmu_priv *priv; > struct mutex lock; /* protects sensor state */ > enum thermal_device_mode mode; > - /* Last requested upper bound, protected by the thermal zone lock */ > + /* Protected by the thermal zone lock */ > int high; > + int temp; > bool enabled; > }; [Severity: Low] Does the broadened comment now make it look like enabled is also protected = by the thermal zone lock? enabled is actually protected by sensor->lock (with READ_ONCE()/WRITE_ONCE() for the fast path in acpm_tmu_get_temp()), and acpm_tmu_control() updates it during suspend and resume without holding tz->lock. Moving enabled next to mode above this comment, or adding a separating comment, would keep the locking annotation accurate. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204-b4-acpm-tm= u-irq-storm-v2-0-614fe39140ce@linaro.org?part=3D6