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=1796122716; b=kR055vP4A4WDeWF9rltl1AVQ7NUIT6QE6P223++d0DqIKqdj4UaZbiNBKjdkYKKvWJGd uDEqv0r5itxGCQ7hA2ZVNaiQkqVV23QHaTjQWopUGym8d/I4rIw+FxBC8Xv2BkBDq5fzl 0xC3pHW5kcyCPaKNYLJomZhwNgeELg21GY1qMIkooVEcNVTVNW/03vt79etoS2X9jFqkV /92sbMXxgKp5X3t7G8JAWyI6oL0OyqKku34dCX21d/RS6K9vyoeMtsO7/vRSSCIjB6DgA LZVdKtBaGMtFvjrK8q0ZBW6hMczFdPgOknKY81fOF4fVB0UwfhtA+s+zZOpvX2XlKgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796122716; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=uu4wpVV7FCrbXqqx3Gc79RNsUrv1Q5kXUk34ZpIwY4k=; b=CR4bKg8fIF2TmDxI+j+KB6f3RZOmQD8I+lleI43DPTyggQMIrhaHJ0VjS+MuY4YXZWj3 kzjAjoJ4xHW4JHe92KYhLGlTaefAuOS2EXHwLpKQ/1qcUDqAzfrl87K7R9nbxPXDGWFc3 efVwoUo8wm+fZORj/tiTa5shinMKmYkOdytgQKM4V4fzpXSf8jPjjKN9pSYzew3i7ONDQ mUXt/RA0c8Wnd8esseQMqdXXMZDGV6uY2AepmsMhxM4qq5SbqLHgOcjYka63Tf/6P8H5O q5eHSOu5mGBHPNmke5k8fEyuHQ3Lohjqo5BE0XBzUc8h9lMR4yUNRb3rQaemVv0Mnjg== 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=JOWPitOX; 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 C943C606A331; Tue, 1 Dec 2026 10:58:36 +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=JOWPitOX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F0FD1F000C1; Tue, 1 Dec 2026 10:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796122716; bh=uu4wpVV7FCrbXqqx3Gc79RNsUrv1Q5kXUk34ZpIwY4k=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=JOWPitOXOB2olSVqQH0aGCBM6Cf+BUNBgPGlB5MwcaVcviLiv0FMaDNPqHMTv/3/6 Ke1lQzG7ETP32sMwly+Byif1RQ8owq+HHhNn0ZMsky1GbRLfYkJVWlNSa1PVq8lSWK JO02+BgSB9P8Y+XmkoJxJSOKzb6Rglu4ujJhNQtyNiOCCTUuGAC6DqYTRwajz3aS1T 3AzsohtFk1e86T5+u4aYLJPstqFCboUtKg8cymU1DS5AQ6wyIWhH8TGYleVzNvnk7G rAwN4KkBnITTvE2QU1yEI2tcd4qcmcIqhbHzZ27XMzY/5UYFHOnGGb5Qvdsm39qvhH L2+iArJZgnK0A== Message-ID: Date: Tue, 1 Dec 2026 10:58:33 +0000 X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soundwire: qcom: skip DPn_BLOCK_CTRL_1 for ports without a word length To: Riccardo Mereu , Vinod Koul Cc: Srinivas Kandagatla , Bard Liao , Pierre-Louis Bossart , linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20261201104714.142340-1-r.mereu.kernel@arduino.cc> From: Srinivas Kandagatla Content-Language: en-US In-Reply-To: <20261201104714.142340-1-r.mereu.kernel@arduino.cc> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/1/26 10:47 AM, Riccardo Mereu wrote: > From: Riccardo Mereu > > qcom_swrm_compute_params() fills a port's port_params only when the DT > gives that port a word length (qcom,ports-word-length != 0xff). For the > other ports port_params stays zeroed, yet qcom_swrm_port_params() still > writes bps - 1 = 0xffffffff to SWRM_DPn_BLOCK_CTRL_1(offset, 0), which > is not a data port register. > > Since commit 55207a5b6959 ("soundwire: qcom: add multi-master support") > the port lookup warns on port 0, so on QCM2290 (agatti.dtsi leaves some > RX ports and all TX ports at 0xff) every boot now shows: > > WARNING: drivers/soundwire/qcom.c:1174 at qcom_swrm_port_target+0x68/0x78 [soundwire_qcom] > ... > qcom_swrm_port_target+0x68/0x78 [soundwire_qcom] (P) > sdw_program_params+0x334/0x804 [soundwire_bus] > sdw_prepare_stream+0x128/0x304 [soundwire_bus] > > Skip the write when the port params were not filled in. Such ports keep > the block control value they reset with, as they effectively did before. > > Fixes: 128eaf937adb ("soundwire: qcom: add support to missing transport params") > Signed-off-by: Riccardo Mereu > --- Hi Riccardo, thanks for the patch, can you try these https://lore.kernel.org/all/20261125103825.936939-1-srinivas.kandagatla@oss.qualcomm.com/ it should fix this issue. --srini > drivers/soundwire/qcom.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c > index ad28a0fa345d..aacbd9e86fd0 100644 > --- a/drivers/soundwire/qcom.c > +++ b/drivers/soundwire/qcom.c > @@ -1209,6 +1209,10 @@ static int qcom_swrm_port_params(struct sdw_bus *bus, > struct qcom_swrm_ctrl *ctrl = to_qcom_sdw(bus); > u32 offset = ctrl->reg_layout[SWRM_OFFSET_DP_BLOCK_CTRL_1]; > > + /* Not filled in by qcom_swrm_compute_params(): no word length in DT */ > + if (!p_params->num) > + return 0; > + > return qcom_swrm_port_reg_write(ctrl, p_params->num, > SWRM_DPn_BLOCK_CTRL_1(offset, p_params->num), > p_params->bps - 1);