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=1796297661; b=zkN7mC0PgvuzVE1oMq8t6y+F51DBNqJNFaf0NbO6Tiv/CPCWzZl52o2w25frGYgjlXg1 Lgm9p5It1E09zqeXpTZ1JDInsoGZ8/GbsHWToKasMezi9GtFIG9HcUnl3yRTskkqIUKrX e6bznQbJQ6OaBq+Kyn2AUGsdQrycRsjMToMwWvTJr/tvgs9dYXLWA99BU+/mtxJTNmX3f uTLFZNgjrGYHf+H/LERDsfNNFh942c4vVIbOoeDJenxAkC/T3Hru9/7MpLg6bukqlW+Dt GG4ss80S5TwcfADWF8+0I9SVbgECOnSnF1jqoNf7jVUSHvukn1NErXhiDwm03HV/cmQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297661; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=mo0BwHInH2B9WMNpUTADF6aee13A0qqDkFWy+Wtw8HE=; b=2L25zw6d2s67tCapZCK1panGG+m7qr6iqIzr695KszhPNeXVYZjQiDNCguxxt829ymkF pqqfSJ9E76oVLs3R7P3iCicizSnUEeYqvhIC8+ZTBusY/MkK7oheT/HhPL36J8N9v0tYf l7wISu9+X9EdBWTd7RVBtUuD7wl8RlHQEuCmsmZzd1H/IcEqVdcHfIFXOnCsOboRaGZSi agzeSlE0bfB2rqY7r6ZErRSnciHhl3N1b41DfckP65xJ4CIEoXjJ9jGCpRLWAjahlaNrg jY4zTtt0Ia19Ipt4r4LZYeJTSJ6mWTDTkEZaR2PGDMLucTRH7YsvYX0KRUdrTc/9mjA== 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=lYqpcbeb; 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 F28EE606A32C for ; Thu, 3 Dec 2026 11:34:20 +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=lYqpcbeb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 898B11F00898; Thu, 3 Dec 2026 11:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796297660; bh=mo0BwHInH2B9WMNpUTADF6aee13A0qqDkFWy+Wtw8HE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=lYqpcbebp7bhw3zsslmv8STVxehKwb7cMJ06iiLPCi/okKqk3PxnF3EKdu+BkaK0J JoQhVNdQsdlv3cyujLyCNB8fkkBQrRVMM6i3wgMZPkc4nCmLkynGCKx9jTvskkxRnL S8MZDVTmrsSDdLCQoIsy76z+h3qL+U2hdGZKVlpQgYev2ZIcsRg8xHVn9cBBE3Bm3G ySsC6wMBL2vKyHLscjzdn3UC08vOhiTHAWj8HM/s5/YleOWb12Smi/RFgYBGQvDTGR E2UvZNAYTBxQWAYTBhhei4JoKw75++9zJBl3tmXl5vEDql3MgSw2VL5XfYyA0q+5Ts eQc1Pa3V4HlLw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/2] ASoC: tas2552: Enable the supplies in the I2C probe Reply-To: sashiko-reviews@lists.linux.dev To: "Arina Kharlamova" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261203-tas2552-rpm-v2-2-7292beb88b1f@mbzuai.ac.ae> References: <20261203-tas2552-rpm-v2-0-7292beb88b1f@mbzuai.ac.ae> <20261203-tas2552-rpm-v2-2-7292beb88b1f@mbzuai.ac.ae> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 11:34:19 +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 while enable_gpio stays high on unbind -- commit f841fc84b4ec0bd5de01b4f81bb48d3d5d5fe1d2 Author: Arina Kharlamova ASoC: tas2552: Enable the supplies in the I2C probe This commit moves regulator_bulk_enable() from tas2552_component_probe() to tas2552_probe() and registers a devm action to disable the supplies on driv= er unbind. > diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c > index 0f0c6f1afde78..af270acfd74f5 100644 > --- a/sound/soc/codecs/tas2552.c > +++ b/sound/soc/codecs/tas2552.c [ ... ] > @@ -706,6 +695,14 @@ static const struct regmap_config tas2552_regmap_con= fig =3D { > .cache_type =3D REGCACHE_RBTREE, > }; > =20 > +static void tas2552_disable_supplies(void *data) > +{ > + struct tas2552_data *tas2552 =3D data; > + > + regulator_bulk_disable(ARRAY_SIZE(tas2552->supplies), > + tas2552->supplies); > +} > + > static int tas2552_probe(struct i2c_client *client) > { > struct device *dev; [Severity: Medium] Can this disable the supplies while enable_gpio is still high and the chip = is out of software shutdown? When the device is unbound while runtime suspended, __device_release_driver= () calls pm_runtime_get_sync(), running tas2552_runtime_resume() which drives enable_gpio high and exits software shutdown. Its pm_runtime_put_sync() on= ly arms the 1000 ms autosuspend timer instead of suspending immediately. tas2552_i2c_remove() then calls pm_runtime_disable(), which cancels the pending autosuspend timer without running tas2552_runtime_suspend(). Devres teardown runs tas2552_disable_supplies() next, cutting vbat, iovdd, and avdd while enable_gpio stays asserted. That violates the power-down sequence and risks back-powering through enable_gpio or causing audible pops on supply collapse. Putting the chip into software shutdown and driving enable_gpio low before disabling the supplies would avoid this. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-tas2552-rp= m-v2-0-7292beb88b1f@mbzuai.ac.ae?part=3D2