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=1796074904; b=EZBMH/Naxg8O6bFQBqPvLMVtWijFmlZ4goBHyHN+mUDe+rdN8lQxt7BoJYrjW88jKsN+ 1MpCAMBSRlvUk8FFpTcKTRn4DDfyoG9KEk3aWXMwcI1iyCKVBZYHtezx1FvVDqPVwDQud Bf/AvKTVj6Q+qN0m4/J9R9cAqy5tJbB+DLLr6BiQJcj4NFjxjfxkrk2z7ATHLie9qQBil Y0vFNj3rwqFsi9tuOqf96V2leO95xJqSU5sHFW/1Q7Gnn4BBovbsXUWXWFx9nzRQhDLwB FtCi2+kKvBgGRbYkmZtKidY7hDGAJO/90Gb1U1ylgHb5rJt+yRuv+qEpILbWVDrOVHw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796074904; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=CYXkpz6qyamWa+ulMLcJjtde1lBR/jWur8jz7oajazo=; b=DYXcAFXjuZMu6OOsk1EZyXUi9ceUxStwv6NWmc6nQRmyS/o7LkfolsqpmRHsyOahxscM 5XfQ1U6N06fqNg9uoQ/28LV62m+NWDh58Gp1ncbPMt0I55Z9ut+bn8rleGEa4rMqr4P2F dhgy4RePFTBPQotfqc6XcRBYXveoTwyYcW2ZLNhKRg57b2fm7GYOpFU5mN1rzruu8ku7L by063sKrKESn/JHMjqi9pcEg70EGXOp7RN3KB/MmBLuYLz/SI2hevc2wrCm5uGdxupt+G Qu/if5X8Hu8+8wWueTeybaAuavvHSEKQiMYwZRPp+W6lxJMF3zQVDkNlnMIovrG8kYg== 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=m3YtKgGc; 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 EC362606A31A; Mon, 30 Nov 2026 21:41:43 +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=m3YtKgGc Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BA871F00896; Mon, 30 Nov 2026 21:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796074903; bh=CYXkpz6qyamWa+ulMLcJjtde1lBR/jWur8jz7oajazo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=m3YtKgGc6z6nnrbB9nsw4QAHDN2iIR8DwTBeuv6+4wiYX6Yrwul7VgBM16LvUG1gh YepI/u+pdL+xz+ebpaar7rZzQwIjM3yC+aIeCvaAA7yPAsJRgHNh8RQQcPe5jbtDCN Z981OlZf50u8c3/z87i+4M/F5ltE9NpY2TCRIy1nHiAPP2NA7I6jgEe3BkkjsLq9p5 VEv3kADrFBSin/t/XY0934LKBkv/2QWY7miVCP33M3Z/cFlRx694/Mqz/vSxtGHUd6 jVxTL1CGveG0FjPXuBrhCjQ29wtFlZTrOiLeo4t1eCov6rvcPK+DJeRiB8HP2458ZS Nqc6aX06IaO+A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3 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: <20261130212258.7376-22-srinivas.kandagatla@oss.qualcomm.com> References: <20261130212258.7376-1-srinivas.kandagatla@oss.qualcomm.com> <20261130212258.7376-22-srinivas.kandagatla@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 21:41:42 +0000 X-Mailing-List: linux-sound@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 221f37a103220ac379312f74ed2387dafb0f054f Author: Srinivas Kandagatla ASoC: qcom: x1e80100: register WSA speaker thermal zones for speaker protec= tion This commit looks up the thermal zones of the WSA884x VI DAIs on the WSA_CODEC_DMA_RX_0 link and registers them with audioreach_sp_register_speaker_map(), clearing the map on link exit. > 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] Does this leave thermal_zone_device pointers registered in sp_speaker_map if qcom_snd_wcd_jack_setup() fails at the end of x1e80100_snd_init()? When snd_soc_link_init() returns an error, snd_soc_card_init_pcm_runtime() returns before setting rtd->initialized, so x1e80100_snd_exit() is not called during card teardown to clear the map. If a wsa884x codec later unbinds and unregisters its thermal zone, audioreach_get_sp_vi_t0() can dereference a freed thermal_zone_device pointer. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130212258.7376= -1-srinivas.kandagatla@oss.qualcomm.com?part=3D21