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=1796391122; b=n/MS09vWpFd1q+EEaEvrUbSsRkBN+AIXggWc1AVJGh04qNMS3e5n61Iet9xDjOO1r4tj FSSa/TndbainJnMsutJxm3E4l12GU0CLhylHLP2Vpkgl2szZk3cOcIz8ZGJEivyShS2gd etRwTZspz6Qu1zzDBRVK8/ibPFGGo1xS3VCBdY3NA5ucLXTIlpWKukw+lIe0LYWxZwZVi PsHTPzGkf/X/HrvP6Mat4nbMqebqXFc4gdxnH93Ek/xg3HXfmqKFaQ1GiOtHLs63/Mzgf Ve/t+Lz+rvfdHz8rsSRAglzQzH9VFtGGNcr2PYLbT/XXtJcV3UxwV8mIwExKbAPrk1w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796391122; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=EfLRt1xx57n51sHubxqEYzU4keueGJ4EPiXydkMSYyA=; b=W+8NVMn4flEvLzXNxV3VOuqCoIv5qezX01CPtsnzoN56K7hWxpvZP7Xnzs+R9l+zJO/i /uH9HtO+Q6WZXNDFDb6CEpVb9IxnYDfkCa3+TWqi8bzOtWKewiOePeHvoK1RdQ2l3TEE/ Nc5/0SwUypYEQYOHdQ7FDTQTBzOVkd/6rM+4ud+FHWK6ODkZPFB8jpPCuF2vdVmYsdhTX DaIf+xg/LZJ3AOfWVUFiqOKIV/VbaxOJaMl4PMckbvKN26KBuRNGFn9W7KlsV41uRXQ7z lW+R2j/bkJCIyXUBbmkv0Umwuh0FFrYyrrnt5Xh5uMnZSgvb2aruTq6Uo89Zcr2UNJw== 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=BHdUK8Oh; 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 96A93606A681; Fri, 4 Dec 2026 13:32:02 +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=BHdUK8Oh Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0C581F00A0D; Fri, 4 Dec 2026 13:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796391122; bh=EfLRt1xx57n51sHubxqEYzU4keueGJ4EPiXydkMSYyA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=BHdUK8OhS+JO/tlBBF2MVEKWqoV3znHPU+B+LA0Cs5DjXrfegkb+QsnfqwHJuvV8c etesDI1xvfYIE1/ysA7WFhAHDRsZyeRxCCP0Ym6J+mderUX9W52/Ex9gRCYIh3EHT5 mXggkUkf5kDMl4xOgRuTPI4m2RPes7zBjptYBf+rpL2S8oiggjWlxj4V+Yk2kWt7vn a2VCU3ejxl8GsBBzK7HN9pclSNceSzzs7Nt6P07fZNGEty6z6AAUgJtn8ZOZS5ACYO QURnpKYmWTqpTKJkHHFcx5//qkTy8bmv0nmMnGsQFgL1+6Je7I2zq27GRjjsSCvJxL Avd1WjsS5l8nQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 10/24] ASoC: qcom: audioreach: run VI module in calibration mode with per-speaker events Reply-To: sashiko-reviews@lists.linux.dev To: "Srinivas Kandagatla" Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204113101.1141644-11-srinivas.kandagatla@oss.qualcomm.com> References: <20261204113101.1141644-1-srinivas.kandagatla@oss.qualcomm.com> <20261204113101.1141644-11-srinivas.kandagatla@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 13:32:01 +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 3 potential issues to consider: - [Medium] ASoC: qcom: audioreach: unrelated wsa884x.c edits mixed into commit - [Medium] ASoC: wsa884x: duplicate hwmon registration in wsa884x_probe() - [Medium] ASoC: wsa884x: removing hw_init check in wsa884x_get_temp() breaks hwmon -- commit 3c5748e4794ffffa00c6acd6959787f2703883c6 Author: Ravi Hothi ASoC: qcom: audioreach: run VI module in calibration mode with per-speaker = events This commit configures the AudioReach speaker protection and VI modules in calibration mode for up to four speakers and registers for per-speaker VI calibration events in q6apm. > diff --git a/sound/soc/codecs/wsa884x.c b/sound/soc/codecs/wsa884x.c > index e5813ed139b34..d0a00aced2208 100644 > --- a/sound/soc/codecs/wsa884x.c > +++ b/sound/soc/codecs/wsa884x.c [Severity: Medium] Were the changes to sound/soc/codecs/wsa884x.c squashed into this commit by mistake? The commit message only describes AudioReach speaker protection and VI calibration events, and these hunks silently undo parts of earlier commit "ASoC: codecs: wsa884x: register the die temperature as a thermal zone". > @@ -1933,10 +1933,6 @@ static int wsa884x_get_temp(struct wsa884x_priv *w= sa884x, long *temp) > =20 > guard(mutex)(&wsa884x->sp_lock); > =20 > - /* OTP trims read back as zero until the codec is initialised. */ > - if (!wsa884x->hw_init) > - return -EAGAIN; > - > if (wsa884x->pa_on) { > /* > * Reading temperature is possible only when Power Amplifier is > @@ -2071,7 +2067,15 @@ static int wsa884x_tz_get_temp(struct thermal_zone= _device *tz, int *temp_mdeg) > long mdeg; > int ret; > =20 > - /* -EAGAIN means no reading yet; don't make the core poll the zone. */ > + /* > + * OTP trims read back as zero until the codec is initialised. Report > + * no reading rather than -EAGAIN, which makes the core poll the zone. > + */ > + if (!wsa884x->hw_init) { > + *temp_mdeg =3D THERMAL_TEMP_INVALID; > + return 0; > + } > + > ret =3D wsa884x_get_temp(wsa884x, &mdeg); > if (ret =3D=3D -EAGAIN) { > *temp_mdeg =3D THERMAL_TEMP_INVALID; [Severity: Medium] Does removing the !wsa884x->hw_init check from wsa884x_get_temp() break wsa884x_hwmon_read() while the codec is uninitialized or unattached? wsa884x_hwmon_read() calls wsa884x_get_temp() directly, bypassing the guard moved into wsa884x_tz_get_temp(). Reading hwmon temp1_input while unattached now calls pm_runtime_resume_and_get(), which can clear regcache_cache_only() in wsa884x_runtime_resume(), dirty WSA884X_PA_FSM_BYP0 and WSA884X_TADC_VALUE_CTL, and return -EINVAL instead of -EAGAIN. Checking !wsa884x->hw_init outside sp_lock in wsa884x_tz_get_temp() also widens the race with wsa884x_update_status() clearing hw_init on SDW_SLAVE_UNATTACHED. > @@ -2084,10 +2088,6 @@ static int wsa884x_tz_get_temp(struct thermal_zone= _device *tz, int *temp_mdeg) > return 0; > } > =20 > -static const struct thermal_zone_params wsa884x_tzp =3D { > - .no_hwmon =3D true, > -}; > - > static struct thermal_zone_device_ops wsa884x_tz_ops =3D { > .get_temp =3D wsa884x_tz_get_temp, > }; > @@ -2246,7 +2246,7 @@ static int wsa884x_probe(struct sdw_slave *pdev, > tz =3D thermal_tripless_zone_device_register(tz_name, > wsa884x, > &wsa884x_tz_ops, > - &wsa884x_tzp); > + NULL); [Severity: Medium] Does passing NULL instead of &wsa884x_tzp register a duplicate hwmon device for each codec? wsa884x_probe() already registers a hwmon sensor via devm_hwmon_device_register_with_info(). With tzp NULL, thermal_zone_device_register_with_trips() calls thermal_add_hwmon_sysfs(), exposing a second hwmon device and doubling polling wakeups and regmap I/O. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204113101.1141= 644-1-srinivas.kandagatla@oss.qualcomm.com?part=3D10