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=1796153817; b=ZSs5XsgavMGz6h0sOzCNNj9596XFHUoUHYrVSfj1i+BTK2lqJpMGgAEyoXSntVTzHIiD POCy9fMVC2vTQHJ8ZCyZ5G7Q0T9nzfFcVN1B2iHDWIp2RcCZ4JFEgBYGOE+OuQlsrk6J0 OT4zEUC4pdF7p8ugwebvdvQv+mdSncCj7kKdITrcqFUvJBlia79x+3fkwtMFcVQ1KN14S y65Hiwlli01ZHqU2gMatXocKgfBEwO9BRxZsou42jYM6EDPIfBrKxTSMTgeEPc3m9ha/A A5lQR9u+5+cLMmlayFeZtbv4Y/wBEXIOdxEwL0NYqSjMtUIHtukLA2qeKT+T0qYKJoA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796153817; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=IbpTSyKYAtJsULdiW9RBo6tvseIwKayw8vXG1QqT0ns=; b=nHiRBwjstDGVOCQ9Ig3NAhjbU1930Qrilk9aAN/iG4dtMW7sz6PRHlLMrjvfa7f1u5OQ GRJ61D8G3IWo6kXpqUfa+jrlZ4KniEZvdC5QY8Om3qHjTZ4sfKlIGACzo44LOcvpcMzfe 5brW/FM7nSWpLJiYG3CQbe27j4w1mg1tWW5u0bAlQDpwZRoLrmCF2YoCUn2l8Y5EL656J TaByrQytjHW0nr5kIWZtjFXCNQlA5S1tU2K49h28BZ4N/LZif4E8JJFlJC6/+uMtlcLw8 C8qWxi9B9RB9I4A/uKVLZIa6Aux1exoLA/21M+TmjizvnccJer5DlQcw/qTvFIceOxw== 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=Y0GGvb+c; 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 F3091606A31A for ; Tue, 1 Dec 2026 19:36:56 +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=Y0GGvb+c Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EF561F00893; Tue, 1 Dec 2026 19:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796153816; bh=IbpTSyKYAtJsULdiW9RBo6tvseIwKayw8vXG1QqT0ns=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Y0GGvb+cro7InipNrtt/qh4hR8Kj4jvdhng3GMSZ2yPCjPB5cyDCITgpg9LmTpd0k nVIcUaV1LBO3ONoJ7J8hU43MZGQw0aIOz/5SJgIqTP/unYHTleEdOwTl582Yy+1AQc 46t72IFcn32tBZAY5z2fgcKLUZtibTc+tEmmWKarcBCQZKe/dDQ7/anfPRSe+cZV1s wRy0p9nBSc/DW14+RxbN/YqBUraNCrz41Bxc1TXPKo6ATE8GvYne/yRXLCqHNZRRwW iNQ8BXJ0u/fTQQIT8xlK86gT9npGOHqUAppMn496nhW04Co4La2o37pNgu/SU+UrRK zw+JkJxsUsO0Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] ASoC: tas2552: Disable supplies on component remove Reply-To: sashiko-reviews@lists.linux.dev To: "Arina Kharlamova" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261201-tas2552-rpm-v1-2-2bac34f9f68f@mbzuai.ac.ae> References: <20261201-tas2552-rpm-v1-0-2bac34f9f68f@mbzuai.ac.ae> <20261201-tas2552-rpm-v1-2-2bac34f9f68f@mbzuai.ac.ae> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 19:36:56 +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: - [Medium] ASoC: tas2552: supplies disabled before suspend in tas2552_component_remove() -- commit e52927e0e6aa3bc7040718bcc4161bf26af6fdee Author: Arina Kharlamova ASoC: tas2552: Disable supplies on component remove This commit disables the tas2552 regulator supplies in tas2552_component_remove() to balance the regulator_bulk_enable() call in tas2552_component_probe(). > diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c > index 0f0c6f1afde78..88b40154530ec 100644 > --- a/sound/soc/codecs/tas2552.c > +++ b/sound/soc/codecs/tas2552.c > @@ -644,6 +644,9 @@ static void tas2552_component_remove(struct snd_soc_c= omponent *component) > pm_runtime_put(component->dev); > =20 > gpiod_set_value_cansleep(tas2552->enable_gpio, 0); > + > + regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies), > + tas2552->supplies); > }; [Severity: Medium] Does disabling tas2552->supplies right after pm_runtime_put() cut power to the chip before runtime suspend runs? tas2552_probe() enables runtime PM autosuspend with a 1000 ms delay, so pm_runtime_put() returns while the device is still active. When tas2552_runtime_suspend() runs later, it calls tas2552_sw_shutdown() over I2C before enabling regcache_cache_only(), writing to the unpowered chip. Once autosuspend completes and marks the regcache dirty, unbinding the codec calls __device_release_driver() -> pm_runtime_get_sync(), which runs tas2552_runtime_resume() and regcache_sync() over I2C with the supplies still disabled. Conversely, if the card is rebound before the 1000 ms autosuspend delay expires, the device stays RPM_ACTIVE across the regulator power cycle, so pm_runtime_resume_and_get() in tas2552_component_probe() skips tas2552_runtime_resume() and leaves the reset hardware registers out of sync with the regcache. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-tas2552-rp= m-v1-0-2bac34f9f68f@mbzuai.ac.ae?part=3D2