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=1796153634; b=xzg8DeFspYKybikHAsgtYpdT0FapK+N18IiPiNTkApyVHPRJMIeYhdtKvHunTeYR868Z rLz7IxoLI3vi4LdjFouYxE3OYRHE7+hGBk91o1URgs7fQVuSFd8ZF9p0K0o77zLPLbqgm FKgR4bzJESqGLCajvaTA4MMV3kI897G/Mk3werCN1Ur78JL01stBi2AO0AopRvGowuTfW MKGhf/TgnMdhtSwhoSsha/Xt+tuYQNmfLVNazT3DCceAPeL9BQDWIU+fi/PLVb+WgUcih G1gq2i1hmXjBfXJyjwKsnvXVyRO51KnwahwwMdyqPQO+SK3tNFVG+qhYhRHMLHWCU6g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796153634; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=a+wagEAjVpxf7awiuX8dAZ/qWpJD0mZDhP+KcpmkfmI=; b=d01EJv4QLVDlebfeONYPbcoEj6Ztgww8xbme0Cnln8D7Bo06ScS8PIK/R7oJgd+N91Iv 0/59PCEzVSz+riecAeX1fTnb8Ktt7oyB+V3QtTyxu7doVcKKVBlzSBs+agOwm7X+4NKjD qaGVoPgIcv0bULSTX1mhXU3XkSEQ3BdQeVIgcmIRn2YJ4vVQ5PwaV6VS9keX/I/8M6yEQ VdzKMu7GSR3I0m1Mn3CbgsQMlXyJr0naPquan3Rz/KT45umLMy0QJsyPx2/2bYGPfwH6Q 7DncjrVNw+49fuL87PL/BmZ1A1ywNl937PB3s+QtNjSxU6VhHHnZbUq++xMAqz/O3RQ== 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=Wu+F61yj; 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 2975D606A320 for ; Tue, 1 Dec 2026 19:33:54 +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=Wu+F61yj Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4A8F1F00893; Tue, 1 Dec 2026 19:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796153634; bh=a+wagEAjVpxf7awiuX8dAZ/qWpJD0mZDhP+KcpmkfmI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Wu+F61yjaXMkTw8XmrkkCxrY5QmPiBbiaU0jaInCmQTpQYJaw0hSc/y3ync3ihhYl Nnq9i1LUT49kGWYTcSyZAjwsyRCSlbj2lTnzp4WDtsk0EvFQfO+9Pdfv9zd+WRqtPt bU/U3XpX0e9Cu2S1n7mifmKXzpb52CxpW+4cayOWwsxWF03jPklf+wFqNISiATljnQ XBS6/9CIV9g4EngdjYaXa9CbJTirApD3kEY/08SI1YRkbFDMXOVJ7wV53x+hYnxG+a FdoRxfFseZA/cxZ5z9Wnhn8g4KL5KT+uFjIKXqQ/0Ru8QwpI+gUWNBsGA7LChoEjMG Fn66S6fbrPuAA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/3] ASoC: codecs: es8375: Disable core supplies on unbind Reply-To: sashiko-reviews@lists.linux.dev To: "Arina Kharlamova" Cc: linux-sound@vger.kernel.org In-Reply-To: <20261201-s2p-asoc-es-v1-2-a628a12e89ad@mbzuai.ac.ae> References: <20261201-s2p-asoc-es-v1-0-a628a12e89ad@mbzuai.ac.ae> <20261201-s2p-asoc-es-v1-2-a628a12e89ad@mbzuai.ac.ae> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 19:33:53 +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 no new issues in this patch, but noticed 1 related pre-existing issue it does not introduce: - [High] ASoC: codecs: es8375: unpowered I2C access in es8375_i2c_probe() [1] -- commit bbbd18d6639b0c2567cfd29b9dd747544cbb0291 Author: Arina Kharlamova ASoC: codecs: es8375: Disable core supplies on unbind This commit registers a devres action in es8375_read_device_properities() to disable the codec's core regulators when the device is unbound or probe fails. > diff --git a/sound/soc/codecs/es8375.c b/sound/soc/codecs/es8375.c > index 7bb6c8d3a7788..14361e5fcab5a 100644 > --- a/sound/soc/codecs/es8375.c > +++ b/sound/soc/codecs/es8375.c > @@ -662,6 +662,13 @@ static struct snd_soc_component_driver es8375_codec_= driver =3D { > .suspend_bias_off =3D 1, > }; > =20 > +static void es8375_disable_supplies(void *data) > +{ > + struct es8375_priv *es8375 =3D data; > + > + regulator_bulk_disable(ARRAY_SIZE(es8375_core_supplies), es8375->core_s= upply); > +} > + > static int es8375_read_device_properities(struct device *dev, struct es8= 375_priv *es8375) > { > int ret, i; > @@ -698,6 +705,12 @@ static int es8375_read_device_properities(struct dev= ice *dev, struct es8375_priv > return ret; > } > =20 > + ret =3D devm_add_action_or_reset(dev, es8375_disable_supplies, es8375); > + if (ret) { > + clk_disable_unprepare(es8375->mclk); > + return ret; > + } > + > return 0; > } [Severity: High] This problem wasn't introduced by this patch, but can the ES8375_CHIP_ID1 and ES8375_CHIP_ID0 reads in es8375_i2c_probe() succeed when the codec is initially unpowered [1]? es8375_i2c_probe() reads the chip ID registers before calling es8375_read_device_properities(), which requests and enables core_supply and mclk: sound/soc/codecs/es8375.c:es8375_i2c_probe() { ... ret =3D regmap_read(es8375->regmap, ES8375_CHIP_ID1, &val); if (ret < 0) { dev_err(&i2c_client->dev, "failed to read i2c at addr %X\n", i2c_client->addr); return ret; } ... ret =3D es8375_read_device_properities(dev, es8375); ... } When those supplies are off at probe time, the I2C reads fail and abort probing before the regulators and clock are enabled. [1] https://sashiko.dev/#/bug/linux-71adb255-1596-4ed2-a0f3-9cde51b1f16c --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-s2p-asoc-e= s-v1-0-a628a12e89ad@mbzuai.ac.ae?part=3D2