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=1796131864; b=pkK3n2gOKb6xvqhCFzi2/0URxHzkTqYzBqph1DSlmJRqDFq2VprCJB98DSULEEYo9eOz XWOIMU4GS0fTMKHsBMLK9/wZRxBxBqtbno0YjAVTL7CVcytQLYJRpbOI0II5tI+5fW+Ci 6xz4xM8VNzyuuJyisacsfVysKuvsNm2WDKpWf0CPI+41fJCLIBlXaXSB35FRLGIslfc+R EBWdXETWRJMRX8hMpZ08X6stFBaJ2S7NqrOGXVJiRW+9YgXN4WQMtvn39I4uZJwWTmGEA voaMMrA+9YuFqGmTH8BK/csHCLVNdpcWcI7hPGSUK5e5MiktWrPpwKiDPebHjAXhYdA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796131864; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=38/3OORXlSvgX8/bO0Xv57OZtOB45Tuql6Dr/I8LhiQ=; b=HyDrPge4x+jdty0BgeaI8PYsDSa1mBR39XixKvU6IRFWLxfhKUcuBtuvab4O1AcZz9GU 67kiOjUI1rQfxKkZUWrXp26ihC4sPpsr+W/i6zjbx9Zv/2WFFaRWtClwgCDwq4z24a4NT 45dSf6UlxYwn4PZTTp9hgGu+TnpWrEhe+h58+hv9+CxSz5m+EGArYmjG2QxARw+risuC6 a40aB+L7jqkE8Sx+p7m3DDVKBl5BIRyJG1CGn9GMox7b8KOiiss4TfsIQc3pyvLJLPUK+ MQTPGihrGhkuRpYmjVo5nIfOzpEVRhywCMoqYEkdjkRRRkqM315LYGq58trWKO0TIzg== 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=evJb2tLP; 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 409AD606A33C; Tue, 1 Dec 2026 13:31:03 +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=evJb2tLP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D9BD1F00893; Tue, 1 Dec 2026 13:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796131863; bh=38/3OORXlSvgX8/bO0Xv57OZtOB45Tuql6Dr/I8LhiQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=evJb2tLPUNDmLOttun1JV/SnFD4dEa8i/g8aXaBH8GUUOtJsvFWUJEOo1bloq1oJn /bpodlpiZBpMJ3/NK1wEGiJJTzlPsxqNE9Ry32GgMSeGp7+CEGZJTRtI5kXq73oUCE Z/DfskB+Y+xyJi3+KbERii1bm0qS0jHhs71+ZVRfN93R8f4gTiv58g1H0DgjoDsI1z PCP/xpeLfFweNlwQmDIldbpDSEZ9yc23/VUPmGQINVhiI3R1GrXQcozW1nVYlZTrgz g9m84REYMBuesITdHpVrL1pOxkXRu/HQqPa4+QwWvRcYGAOtkMfQfRNbmf57IbJdzS rmrs+BXd8y7+g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 22/24] arm64: dts: qcom: glymur-crd: 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: <20261201124753.196748-23-srinivas.kandagatla@oss.qualcomm.com> References: <20261201124753.196748-1-srinivas.kandagatla@oss.qualcomm.com> <20261201124753.196748-23-srinivas.kandagatla@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 13:31:02 +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 2 potential issues to consider: - [Medium] arm64: dts: qcom: glymur-crd: duplicate swr capture DAIs corrupt m_rt_count - [Low] arm64: dts: qcom: glymur-crd wsa-dai-link sound-dai exceeds binding maxItems -- commit 477126efe46745458e2d4fe969c058eb7b3b6fc3 Author: Ravi Hothi arm64: dts: qcom: glymur-crd: add WSA speaker protection VI feedback This commit adds the WSA8845 speaker V/I sense capture DAIs, SoundWire VI ports, and WSA macro VI capture DAIs to the WSA Playback DAI link on Glymur-CRD, and updates the speaker nodes to use #sound-dai-cells =3D <1>. > diff --git a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi b/arch/arm64/boot/d= ts/qcom/glymur-crd.dtsi > index 58158b51fe295..93bee2a97e548 100644 > --- a/arch/arm64/boot/dts/qcom/glymur-crd.dtsi > +++ b/arch/arm64/boot/dts/qcom/glymur-crd.dtsi > @@ -257,10 +257,16 @@ cpu { > }; > =20 > codec { > - sound-dai =3D <&left_woofer>, <&left_tweeter>, > + sound-dai =3D <&left_woofer 0>, <&left_tweeter 0>, > <&swr0 0>, <&lpass_wsamacro 0>, > - <&right_woofer>, <&right_tweeter>, > - <&swr3 0>, <&lpass_wsa2macro 0>; > + <&left_woofer 1>, <&left_tweeter 1>, > + <&swr0 12>, <&swr0 13>, > + <&lpass_wsamacro 2>, > + <&right_woofer 0>, <&right_tweeter 0>, > + <&swr3 0>, <&lpass_wsa2macro 0>, > + <&right_woofer 1>, <&right_tweeter 1>, > + <&swr3 12>, <&swr3 13>, > + <&lpass_wsa2macro 2>; > }; [Severity: Medium] Should each SoundWire controller only list a single capture DAI on this link instead of both <&swr0 12>, <&swr0 13> and <&swr3 12>, <&swr3 13>? qcom_snd_sdw_setup_dir() attaches a single capture sdw_stream_runtime to every capture codec DAI on the link, and a single call to qcom_swrm_hw_params() -> qcom_swrm_stream_alloc_ports() already iterates all slave runtimes on ctrl->bus and maps both master ports via slave->m_port_map (just as <&swr0 0> and <&swr3 0> do for playback). Listing two capture DAIs per SoundWire master controller runs qcom_swrm_hw_params() -> sdw_stream_add_master() twice per bus on the same capture stream: 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++; } ... } When VISENSE Switch is disabled on a bus, wsa884x_vi_hw_params() adds no slave ports, so num_ports is 0 and m_rt->port_list stays empty. The second DAI on that bus (<&swr0 13> or <&swr3 13>) sees !sdw_master_port_allocated(m_rt) still true and increments stream->m_rt_count a second time for the same m_rt, while sdw_stream_remove_master() in qcom_swrm_hw_free() only decrements it once. When VISENSE Switch is enabled on only one bus (or after a hw_params/hw_free cycle with VISENSE disabled on at least one bus), stream->m_rt_count reaches 3 (>=3D bus->hw_sync_min_links), causing sdw_bank_switch() -> sdw_transfer_defer() to fail playback prepare with -ENOTSUPP. [Severity: Low] Does expanding wsa-dai-link/codec/sound-dai to 18 entries break dtbs_check? Documentation/devicetree/bindings/sound/qcom,sm8250.yaml (which validates qcom,glymur-sndcard) currently caps codec/sound-dai at maxItems: 8. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201124753.1967= 48-1-srinivas.kandagatla@oss.qualcomm.com?part=3D22