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=1796393818; b=LCdYO+nxUtzYkdVyLeoceTGCOnOOZQvFC4zWyJ3ocuxw2p87I70xrX+2oCXbjE4xknbl Ne5+jzuD6Ic6myyuhXqW1YsoqKcDatUkMwmwJfSp/XzPr1Bq48e02E/NNKlZCBigFrt2Y +J884YwPUMmBbXtU0GIIY9qqX7/tTdwHj8cC5TrC81KoDd7WIu6v3psf69J7gyopWXOuy 4X7m4rTV3z3b8UK5N3UTLdLC7QP8dg996mh//PCLe5gKG1vUWOdzavvtJsQ9lL+FINTKg 9G0edj5OhC9HkBdxIiZ3zozQEZr809/5+Oqyh+NNqJtaUqumZ+Wd5Kkx41c0lPHmv3g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796393818; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=hjbayWWhP1TTVeBAYvKp9n2/WbrLPMRkC8VBik48oQg=; b=5NusRbv3ZpM5lhBZXf1NhSK0HXHjQCxIHCIoE3zERpJbs/RBS5bksrHC5cIkTubIoLZ3 Mev5qUEysUWqkdREHX64SZRsiX1r9gn3OaKZAVr23m5ghU4MqCbcEhhFbI9kPXWMEazqn LH/wQdJoZAdCr+UwJL1/T80MZlPgdZLif2q6k0eT8LbIBUDDGblW+Grz91YQ+KltWCOWr ydC1sVgMS2Ajk684ZNsgrGs+dRIztSwsauGhtJnfpoD84dtIVIJ+Ymny8yJB8FFvu3cCe BoLrv0JnkpvMQ1vgF/TAf6GLEOkajg9vKQz7lQWqZS69patTg7exmk5+QbXU6ZILJIg== 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=NiYVBmtv; 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 DF7CD606A322; Fri, 4 Dec 2026 14:16:58 +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=NiYVBmtv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E95D1F000C2; Fri, 4 Dec 2026 14:16:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796393818; bh=hjbayWWhP1TTVeBAYvKp9n2/WbrLPMRkC8VBik48oQg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=NiYVBmtvqSAmGVibl6avLA+QtCFHA98wSX27D41azNv55A7a4cIJf2DSvq8bw10vW dWImDy2ZWArM+NE+hfjp4k5JaOIKja1ibItQ7pmUibxgmLkeiMRn0KbYe1tmplfHq2 heoKv0qVrVfLLO6ahjGpK8se4jvaJW856DcoEOJrdFv5x+OUwbG0kbjF5bHsLd3GQk Inqnb+2ts40rjQ6hwCDS8QAY+3yxVHmxCzNzlOiHCxW2nuskA15xM+9DxP7IV3K22v VgSuoWRHxRoAlCPVyu3jJv4r56rZvbvIElhqMm4cH1Fdjcr9uoBOhYbk0TeRSYds73 tv0QI0UrhwPrQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v5 23/24] arm64: dts: qcom: mahua-t14s: add WSA speaker protection VI feedback 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-24-srinivas.kandagatla@oss.qualcomm.com> References: <20261204113101.1141644-1-srinivas.kandagatla@oss.qualcomm.com> <20261204113101.1141644-24-srinivas.kandagatla@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 14:16:57 +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 3 potential issues to consider: - [Medium] arm64: dts: qcom: mahua-t14s: duplicate swr0 capture DAI leaks m_rt_count - [Medium] ASoC: qcom: sdw: qcom_snd_sdw_prepare() fails with -EINVAL on reconfiguration - [Low] arm64: dts: qcom: mahua-t14s: wsa-dai-link codec sound-dai exceeds maxItems 8 -- commit 9bbeecb4a8d74299d3e25546aee9dc3a76f8fd40 Author: Srinivas Kandagatla arm64: dts: qcom: mahua-t14s: add WSA speaker protection VI feedback This commit adds the WSA8845 V/I sense DAIs, SoundWire VI ports, and WSA macro VI capture DAI to the wsa-dai-link codec list on the ThinkPad T14s Gen 7, and updates the speaker nodes to #sound-dai-cells =3D <1>. > diff --git a/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd= .dts b/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts > index 26d6d8285e040..35419545d7156 100644 > --- a/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts > +++ b/arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts > @@ -269,8 +269,11 @@ cpu { > }; > =20 > codec { > - sound-dai =3D <&left_spkr>, <&right_spkr>, > - <&swr0 0>, <&lpass_wsamacro 0>; > + sound-dai =3D <&left_spkr 0>, <&right_spkr 0>, > + <&swr0 0>, <&lpass_wsamacro 0>, > + <&left_spkr 1>, <&right_spkr 1>, > + <&swr0 12>, <&swr0 13>, > + <&lpass_wsamacro 2>; > }; [Severity: Low] Does this break dtbs_check against the binding? Documentation/devicetree/bindings/sound/qcom,sm8250.yaml constrains codec/sound-dai to maxItems: 8 for qcom,glymur-sndcard, while this expands wsa-dai-link to 9 entries. [Severity: Medium] Can listing both <&swr0 12> and <&swr0 13> leak stream->m_rt_count on the capture stream? qcom_swrm_stream_alloc_ports() already allocates master ports for every slave on ctrl->bus regardless of dai->id and calls sdw_stream_add_master() even when nports is 0. With VISENSE disabled (the default), wsa884x_vi_hw_params() skips sdw_stream_add_slave(), leaving m_rt->port_list empty: drivers/soundwire/stream.c:sdw_stream_add_master() { if (!sdw_master_port_allocated(m_rt)) { ret =3D sdw_master_port_alloc(m_rt, num_ports); if (ret) goto alloc_error; stream->m_rt_count++; } } Because !sdw_master_port_allocated(m_rt) stays true when num_ports is 0, the second swr0 DAI increments stream->m_rt_count twice for a single m_rt, while sdw_stream_remove_master() only decrements it once during hw_free. Once repeated hw_params/hw_free cycles push m_rt_count to hw_sync_min_links (3 on qcom,soundwire-v3.1.0), sdw_bank_switch() calls sdw_transfer_defer(), which fails with -ENOTSUPP since qcom_swrm_ops has no .xfer_msg_defer. Listing a single swr0 capture DAI avoids the duplicate registration and keeps codec/sound-dai within 8 entries. [Severity: Medium] Does enabling multi_direction_codecs on wsa-dai-link cause playback prepare to fail with -EINVAL after a hw_free reconfiguration? With VISENSE disabled, hw_free on an open playback substream calls qcom_swrm_hw_free() -> sdw_stream_remove_master(), moving the capture stream sr_opp->state to SDW_STREAM_RELEASED. A subsequent hw_params on the same open substream leaves sr_opp->state in SDW_STREAM_RELEASED. In commit "ASoC: qcom: sdw: add per-direction stream runtimes for multi_direction links", qcom_snd_sdw_prepare() only skips SDW_STREAM_ALLOCATED, so it calls sdw_prepare_stream(sr_opp), which rejects SDW_STREAM_RELEASED with -EINVAL and aborts playback prepare. qcom_snd_sdw_hw_free() has the same !=3D SDW_STREAM_ALLOCATED check and would also try to disable and deprepare a SDW_STREAM_RELEASED stream. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204113101.1141= 644-1-srinivas.kandagatla@oss.qualcomm.com?part=3D23