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=1795998862; b=g1mr3C7c14QcxnF6Ev08Irw2ZVYVWVybCemYqZKZ4+uTR9Eyps+rh0HU0DNqIPMBsZ2J SzCI83t3WmgN0586U2lYKOU9ry/uZ4Pz7xQq96KnA53gYyxlqyUD+1R4vsXWisH4Mj/Uh mcNL86a1SuqlxPwc/MXwRgklWW7PCuf0/fQ0V4Cf474W/1ZoLh8o/etkAx1u8HFcT01U2 FNFjofA2ThT7QYovcpi2PdC06AaLt1j6UMyD5Ve2+27aEIyVZqkGRe1m/qEzPVxrNCeDp R07Er35/sGiG727ldvxsDaOMzo7cadRnQZQ7fVhwnyc17eguCNg7ycD6OKdJAxR+DiA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795998862; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=icmn7Iemv1bmxnmY1e6H2l7x9rU0htqDx8iMx4HdIGM=; b=R+EwhTpDUScgWqgDtS6Su5Jde4vFc0MaqSQd3F6FspPxGgqvIjN+0Xkgw2z6ivfeMa4B LfYBzOH3pJu3/KKTr5lewGEBHCgwMgMne7IUATPpD3qFvTcsC3Hwhsz4zDd/29y+IGCex O1RgAOlvSaeUYwhjgHXY61yw52mSdf4gGNiHrGAdIl/Gqy5Jm9AQFzhRPvgD9eIs79q90 jCiZ0JnmRkW8clwwylAmqUG1a/LW4Qed44m1OlyP1O23S8CDQPug2BvkKjO+9ScUV3KmL hs0nDX2OwmbCAuO64oWo1DBZGYRTaoKEAA5gtlySQBOHglP3PY84djYLGifsjhC6bWw== 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="e/v9nMLY"; 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 A07F8606A31C for ; Mon, 30 Nov 2026 00:34:22 +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=e/v9nMLY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A99D1F00896; Mon, 30 Nov 2026 00:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795998862; bh=icmn7Iemv1bmxnmY1e6H2l7x9rU0htqDx8iMx4HdIGM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=e/v9nMLY4wz0s49rh83fh4tI38s7pkQ+scbY3l7ZY3eoWRVZ+jbBd8/f4xvmkQX6Z ks09F2g/gjrWtgfRVf7LwsOZ1UTD2KHigBYTmeeuA1I6WQBwEh+XWEFV5LQJqUZnqw N4iUmNNRq2iE72nEkDRluhh2sbDyOTIX5XkhUNt9kUN6jj7HY0gxFz6f43r28S5qG4 vclEeca618z5SCk+vYWbcRaoDKpyr6Tknd023+YVVO+/gbcpOciIoYQawH+CfZqyyo YM0Yk6/soBikqGFT4oVA6IjuuJQOoVHPgGV+4FfaWWPAk7xpdAtwh2EgfxFNrQrXH4 IZbd7re5Rk0Bg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v1] ASoC: tas2783-sdw: ensure PM runtime active to fix no sound issue Reply-To: sashiko-reviews@lists.linux.dev To: "Baojun Xu" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261130000912.492-1-baojun.xu@ti.com> References: <20261130000912.492-1-baojun.xu@ti.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 00:34:21 +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] ASoC: tas2783-sdw: removing pm_runtime_mark_last_busy() in tas_init() bypasses autosuspend - [Medium] ASoC: tas2783-sdw: premature pm_runtime_set_active() in tas_init() bypasses init wait - [Low] ASoC: tas2783-sdw: missing Fixes trailer for commit 4cc9bd8d7b32 -- commit bb8b101e025b2a336b69d877adfc8440c8b588c0 Author: Baojun Xu > ASoC: tas2783-sdw: ensure PM runtime active to fix no sound issue > > Fix an issue where sound output fails after multiple reboots. > The driver now explicitly ensures the device is in PM runtime active state > during initialization/resume to prevent the codec from remaining in a > low-power state.. > > Signed-off-by: Baojun Xu [Severity: Low] This fixes a bug introduced with the driver. Should the commit message include: Fixes: 4cc9bd8d7b32 ("ASoc: tas2783A: Add soundwire based codec driver") > diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sd= w.c > index 08b37e7b3a9e4..86c1fb153abd3 100644 > --- a/sound/soc/codecs/tas2783-sdw.c > +++ b/sound/soc/codecs/tas2783-sdw.c > @@ -1105,7 +1105,7 @@ static s32 tas_init(struct tas2783_prv *tas_dev) > pm_runtime_set_autosuspend_delay(tas_dev->dev, 3000); > pm_runtime_use_autosuspend(tas_dev->dev); > /* make sure the device does not suspend immediately */ > - pm_runtime_mark_last_busy(tas_dev->dev); > + pm_runtime_set_active(tas_dev->dev); > pm_runtime_enable(tas_dev->dev); > =20 > return ret; [Severity: Medium] Does removing pm_runtime_mark_last_busy(tas_dev->dev) instead of keeping it alongside pm_runtime_set_active(tas_dev->dev) cause the device to suspend immediately after probe? Neither pm_runtime_set_active() nor the _no_pm SoundWire register helpers update dev->power.last_busy, leaving it at 0. When the driver core calls pm_request_idle() after probe returns (on any probe finishing at least 3 seconds after boot), pm_runtime_autosuspend_expiration() sees an already expired timestamp and triggers tas2783_sdca_dev_suspend() immediately rather than waiting for the 3000 ms autosuspend delay. [Severity: Medium] Can setting tas_dev->dev to RPM_ACTIVE unconditionally in tas_init() cause pm_runtime_get_sync() to skip waiting for SoundWire initialization and firmware download? tas_sdw_probe() calls tas_init() while regmap is still cache-only and before tas_update_status() -> tas_io_init() has attached the peripheral and loaded firmware. When the device is already marked RPM_ACTIVE, a PCM open calling pm_runtime_get_sync() returns immediately without running tas2783_sdca_dev_resume() -> sdw_slave_wait_for_init(), so a concurrent tas_sdw_hw_params() sees !tas_dev->fw_dl_success and fails with -EINVAL. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130000912.492-= 1-baojun.xu@ti.com?part=3D1