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=1796131456; b=0X0JU6L7hMdJKkCFjBWGe3HfAjtt5xnUz+8pTAtl0IF+Ru+EdxGjLmNRDYAi5bGBOLUC vX+ibxy6k2uZwJFUos2vVI7C0yqJiUdigD+7hlACOpDSuSwpYTrAlL2ja9UvFTsid6d5/ 0QIO/G7rEXYXPgEin3V6UxJl2rSuHZr5C3TzWbTIp6gu9gZOxzDb6z7Ph57xXpdHAwk8q ItZIlkq/FXw4oSoA5xSkmicskXlrGXFm9eSrwe3QXjm3Oxn64ys79jEwxpd72wEZcqS1o FEGISo5VvcJWzdCJOMT0BaXZkoh6K+Ojeii/Fq2W7F70oLxXlTLtLkH6xAWPRAS1kjQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796131456; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=oSC/siAMO/uQMSJZxKB7t7BTERtIGfzwdBoHSUxJAU4=; b=u26Q6+EpWZ30k1UPnFSxWwcfz4ZLDmxMg2ITq6kJ71UYoE+e36LODMjvVpb+vQvzBJYx tP2ktpJoFM3KX5b/tRCa67EHeyjk7i8BVx1Dd5QLsQ4hSZvSZw2xaYjLWZW355QrBQzbF Dh+A/PWiuncqMPx1BsO6sFBon1U/V7I1MaYGAlW5F7fQ9++dHjGjyUdt7tj/bPOZne0BG f04xSoxWm0lkBgjVPO+0QZDZjtNyM6fEq7eulzlZ/SWuZ4+n/ZJIDdJ65WuTE3FYO8IRY LQKtuz6gEFGfTgnGkKbEkAaEi70QUgSWflKvi6IgMnDWqY9hxFHuRG8H01ZN5ZHPz1w== 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=NFlF3x8Y; 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 5B3BB606A31A; Tue, 1 Dec 2026 13:24:16 +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=NFlF3x8Y Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8E741F000C1; Tue, 1 Dec 2026 13:24:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796131456; bh=oSC/siAMO/uQMSJZxKB7t7BTERtIGfzwdBoHSUxJAU4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=NFlF3x8YoV0I6LX1GCyHa0icy+dE97MR2WqLUs/UKN0A/VLtVEdcyphn9kbOfMeLL EYmmGol1fbO/rKEWiclu05Q/16msvPTv/4KGBzS98i3hZqSfkNaWnqxo8NiUbSBHjh veghkYypvYTrX3xpzCIQV3naR12b8JCHxFXdKCA1IcUz7vtoNykkwxVRZOptqB1MDj g4FyIw7S3knZ0phUautns2P97qokQVhXEApGaNGs14SzK6RAwHU5Pwl3dJmkYMbCsR tvaTrA3osfALbx8tMo0hDMKddeGFDiDMIpCMWiTx9ILaTogRn8xMaEzmf17A0wLFQe EsSiahRyXbQXA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 21/24] ASoC: qcom: x1e80100: register WSA speaker thermal zones for speaker protection 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: <20261201124753.196748-22-srinivas.kandagatla@oss.qualcomm.com> References: <20261201124753.196748-1-srinivas.kandagatla@oss.qualcomm.com> <20261201124753.196748-22-srinivas.kandagatla@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 13:24:15 +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: - [Medium] ASoC: qcom: x1e80100: missing speaker map cleanup in x1e80100_snd_init() -- commit 3897ba8e67c4b2c7f9f0627795e0c22cc190e99c Author: Srinivas Kandagatla ASoC: qcom: x1e80100: register WSA speaker thermal zones for speaker protec= tion This commit looks up the thermal zones of WSA884x VI DAIs on the WSA Playback link and registers them with audioreach_sp_register_speaker_map(), clearing the map when the link is torn down. > diff --git a/sound/soc/qcom/x1e80100.c b/sound/soc/qcom/x1e80100.c > index 3262fa39ceb94..9401d47024325 100644 > --- a/sound/soc/qcom/x1e80100.c > +++ b/sound/soc/qcom/x1e80100.c [ ... ] > @@ -34,6 +79,8 @@ static int x1e80100_snd_init(struct snd_soc_pcm_runtime= *rtd) > =20 > switch (cpu_dai->id) { > case WSA_CODEC_DMA_RX_0: > + x1e80100_register_sp_speakers(rtd); > + fallthrough; > case WSA_CODEC_DMA_RX_1: > /* > * Set limit of -3 dB on Digital Volume and 0 dB on PA Volume [Severity: Medium] Can a failure in qcom_snd_wcd_jack_setup() at the end of x1e80100_snd_init() leave sp_speaker_map populated with thermal_zone_device pointers that are never cleared? When snd_soc_link_init() returns an error in snd_soc_card_init_pcm_runtime(= ), rtd->initialized is not set and snd_soc_link_exit() (x1e80100_snd_exit()) is never called during card cleanup. If a wsa884x codec later unbinds and unregisters its thermal zone, audioreach_get_sp_vi_t0() can dereference a freed thermal_zone_device pointer. Calling x1e80100_register_sp_speakers() only after qcom_snd_wcd_jack_setup() succeeds, or clearing the speaker map = on error, would avoid this. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201124753.1967= 48-1-srinivas.kandagatla@oss.qualcomm.com?part=3D21