From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.224 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796049058; b=wqrH4FEZeApWTttQAvRh4u9xG5TdaM6SuDpPXrNKZe9cvjG8yCvPmLjSf2ytmNly5jYo b/Fk2Ps2+bh+EZc+XNo60Q3Sn71p4ZNijA9UnaqxR/WABqqI4c+ttl6tM467aOiIfnrAL nOC46GrhS5lfNEkMpJCv+ZWfMhCcG7FpnCTCogB91fhySDrbOscS1EIu9Lh2lB98wCxbI n16V5iqM3OAe/BqNjbnD8hgjyRfTKQDcM4HfuyS8eP+JRpuA4UNddQZq5a/0FkpwTuHGu gnbYadbdf+wQjxgtDAudAXO9RCTw79wHcE3YlV+EyxylLOuG/NRlsoE2KAoQyTFR2cw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796049058; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=P/icFdb6dgXu/Tc1rFMe1MezQ1IjSLGJT+1ldOyO5yE=; b=v5sLPzbGDnJRiuHd5A2+12JJ6JeaQJjH2oFip0vb3clGWHMi+30si9xFf/bMbvBf6NnN vdH6QYEq0dlJcuJTXGcw3B874GQ2z5MZogEkWUdVjgm/58svTbyPwYHuiMhkw+ebdqn8W VHz/DCYyRX0AOzDjJdmAicPIW9IXH9Dd4wfEYWSDvJxlGLaXAKFBqj0REkIk0QjzJY8kK gdqUDxl/2XVMU7yu79pK9pXze/w2hCSj0OoYnEEpRn+f7338DssdmbWEoJMB4eX+jZ6vK TbRvQxBmGsk8PwpMZcBk1cEtK0bubRcsMR5lOFfmFfyP+79Z/0o2upylLEFtp2sg00Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=hRa8dHxs; arc=none smtp.remote-ip=95.215.58.224 Received: from mta1.migadu.com (out-224.mta1.migadu.com [95.215.58.224]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 070D7606A31C for ; Mon, 30 Nov 2026 14:30:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 070D7606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=hRa8dHxs X-Envelope-To: linux-sound@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=ANQHgiIxtvkVN0o2489odr1GxrTKcdyWqy9cXvrAfS4=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796049056; v=1; x=1796653856; b=hRa8dHxsmq+vcHoEwmvWpEpW2rMk1z7z1gniCdcIr3OKTZsS3w7PGs+20wxG1f8Tyxz56r/Q RyP7J7JvzH7z8LiGiqDIsZaaGoIYQGnkhoJSvxjVntww+af3Kd7ydCF4ZoXrVhvuLxx03YA2qcy E4ok8x5XB8xUVpjYEMXELf90= X-Envelope-To: linux-sound@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 2163897bc8bdb266; Mon, 30 Nov 2026 14:30:55 +0000 X-Mizu-Trace-ID: 2163897bc8bdb266 X-Migadu-Flow: FLOW_OUT Message-ID: <83fee173-9f1a-4f64-9df1-de89940e8664@linux.dev> Date: Mon, 30 Nov 2026 11:39:13 +0100 X-Mailing-List: linux-sound@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 v1] ASoC: tas2783-sdw: ensure PM runtime active to fix no sound issue To: Baojun Xu , broonie@kernel.org Cc: tiwai@suse.de, andriy.shevchenko@linux.intel.com, 13916275206@139.com, alsa-devel@alsa-project.org, shenghao-ding@ti.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, k-yi@ti.com, henry.lo@ti.com, robinchen@ti.com, niranjan.hy@ti.com, pin-hao.huang@hp.com, Syed.SabaKareem@amd.com References: <20261130000912.492-1-baojun.xu@ti.com> Content-Language: en-US From: Pierre-Louis Bossart In-Reply-To: <20261130000912.492-1-baojun.xu@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/30/26 01:09, Baojun Xu wrote: > 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 > --- > sound/soc/codecs/tas2783-sdw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sdw.c > index 08b37e7b3a9e..86c1fb153abd 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); There are two issues with this change I am afraid: - first why would you keep a comment related to mark_last_busy() but remove that call? - and then the set_active() is typically done when the device becomes attached, not when the driver/component is probed. See other drivers for reference, e.g. rt711 /* * PM runtime status is marked as 'active' only when a Slave reports as Attached */ if (!rt711->first_hw_init) /* update count of parent 'active' children */ pm_runtime_set_active(&slave->dev); It does look like your driver is indeed missing the set_active() call, but you added it in the wrong location.