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=1796297655; b=a4Iv8ZvngfqJFAdcTGtIvlk7FPH6MZWc5Cx0HzkEtzHVH65pC+AadKJjG7aLgXpLwu5n m9XOtKUABuidz2VVhOYWVuELa/RkMVtjpMzbqULm4QpTCn/wOCdPDDzE9l6C6AR8LbqYp KDqbMErFM2RX8wHbly9vA+P3FGDJmsipYELcv0wiATor24NbZe0sF/kl5YWXSeIB7u3Q0 CgQobz6Zx6loEeZpy7A1GqahlutTE80TxCAcHjfYlvCNhcYHajUVyazx9y7zSgf5LLSbc uZB9CgUf/cF+Yor7Wo9yJWoAy5m2o2wUQc1PxK6W9NrLcvszyETad40a5SFjDNvh0Uw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297655; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=2yTvGujJDJtTb89S8rJDmRDmAArDnnrGz1Fkd+whyq8=; b=PDabOOTr/bauxNdO3AxetnckDWdrxa9hFPuqPt0WzD2b/wPdQcUms3DT7EEOZf6rMvwS +0nVwQdcvr994az8EWMxr5IOy2/UIas2QS7IGFmDhjjxTG/wtCT1lo6ZCZUnlNARnlLWX mv8QATJMhq+Y230ElVckCzOu0UUphQkrQ/vhNVoOQVlYvkaSCQX4TGKq3XCcgscfcZUi8 +l9zHqrbt+FDdtmlYaJVQJ1Et95x4JxfNrIXnmQoDBDGVWXzxRGLmIYxh8gAkWqzn+7LR Y/Y6wxBNx+7a4kXMfQ0v2oo46R0qu3GRA0qz1YorfwT6hiKDOKyU67ZEeq4a6Pv++FQ== 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=OIU047Tt; 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 0901B606A322 for ; Thu, 3 Dec 2026 11:34:14 +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=OIU047Tt Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74DE51F000C1; Thu, 3 Dec 2026 11:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796297654; bh=2yTvGujJDJtTb89S8rJDmRDmAArDnnrGz1Fkd+whyq8=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=OIU047TtJP6XVqFn6i0/Va+DzagP5T8TV0vcCRprXS4RVkY4xmGyhHgj87/ynY9Iw 1TeQZhSI+3qze6TFPVfSrvFacTor11o5nPpAoCEYpJTVrYIka+0Pp/YnKEG4NfmIsm ox4co8cJHGcqqY81zDnF7rX8Glsd2qr6vzr7gNmFN1d1tKhDqsunU0SO2mbyTwlrL2 mp7p5Ant8NkIuYiDwMRUtb75DV+68qp/JJdhV9e3bH5l8hJrgNQhA2pUsMj0Vibbp5 YqFf5tBEXXPxxEou1q4O2ZhcFto99hm3q9rI2qCtJC1J6F3+/i67vJ5mZ1NltNOK50 KcPMZp6GYVqLw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 1/2] ASoC: tas2552: Fix runtime PM usage count underflow in probe Reply-To: sashiko-reviews@lists.linux.dev To: "Arina Kharlamova" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261203-tas2552-rpm-v2-1-7292beb88b1f@mbzuai.ac.ae> References: <20261203-tas2552-rpm-v2-0-7292beb88b1f@mbzuai.ac.ae> <20261203-tas2552-rpm-v2-1-7292beb88b1f@mbzuai.ac.ae> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 11:34:14 +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 1 potential issue to consider: - [Low] ASoC: tas2552: missing pm_runtime_mark_last_busy() in tas2552_probe() -- commit b92bf1fc547071c78df4015b0deecdfec98c7f8a Author: Arina Kharlamova ASoC: tas2552: Fix runtime PM usage count underflow in probe This commit removes the unbalanced pm_runtime_put_sync_autosuspend() call in tas2552_probe() and disables runtime PM on the component registration error path instead of calling pm_runtime_get_noresume(). > diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c > index 7fda383043ed5..0f0c6f1afde78 100644 > --- a/sound/soc/codecs/tas2552.c > +++ b/sound/soc/codecs/tas2552.c > @@ -746,7 +746,6 @@ static int tas2552_probe(struct i2c_client *client) > pm_runtime_set_autosuspend_delay(&client->dev, 1000); > pm_runtime_use_autosuspend(&client->dev); > pm_runtime_enable(&client->dev); > - pm_runtime_put_sync_autosuspend(&client->dev); [Severity: Low] Does removing pm_runtime_put_sync_autosuspend() leave dev->power.last_busy at 0 and bypass the 1000 ms autosuspend delay? Commit bbe5e3c433a3 ("ASoC: codecs: Remove redundant pm_runtime_mark_last_busy() calls") dropped the explicit pm_runtime_mark_last_busy() call here because pm_runtime_put_sync_autosuspend() updated it internally. Right after tas2552_probe() returns, __driver_probe_device() calls pm_request_idle() -> rpm_idle() -> rpm_suspend(). With last_busy still 0 and uptime at least 1 second, pm_runtime_autosuspend_expiration() returns 0 and queues tas2552_runtime_suspend() immediately. That contradicts the commit message's claim that the device stays active after probe and causes an extra suspend/resume and regcache_sync() cycle when the ASoC card binds. Restoring pm_runtime_mark_last_busy(&client->dev) before pm_runtime_enable() would preserve the 1000 ms autosuspend window. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-tas2552-rp= m-v2-0-7292beb88b1f@mbzuai.ac.ae?part=3D1