From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796312106; b=NahdLptpIX4nfPowHncF4+5tddQ/4rC3rro9x2ObzbER7npf1yJL3Xy9x+UrXIRqE94m q4NnldcSoUn9LJlJlyfUrBzh5U3tSHe2JWb02bhIhsapTEmqv+XveRLdgzkEbHYHT3SSO Vz49Xw9MDokvB6DWXB6fRz4Xb4w8HiEe7aF77HlzDg/s9VovStttVo+eZ2GTvZzD6a/px jTXYfwfoUO+BHRUBm67JdvjefCJmJkkagyw9jtlAq3CCPHALKyWBhTAz4zYTvxzUhkD1g sIZKEjiFcOFfpM6dWRTRLa6BVTEkOJyYURfkgSad8cO2592gmpFIJJYGDq8PXnAE+Kg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796312106; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=MS4ftMlK+nCE0d1OCG1v0yY931qdP+kpDA2EvDBYVbw=; b=TWU+SB5LAVTdGT7syBs7RfFminqZG4hhvFCTd56U1oX2toZw4k5F/2cbQl3RH04BlIwe mzY1Dyt6W18OZ9CJwpsJvoB26Qz+sP3HKSr+Bbdrb4qRsGZh4IkJAGnY8jke89S+La6aL ZCv8NgKMmYlRVrKKatOHBEbwLrNOfwFIYTRLlvqOupjkwzNdBcyeeTAQ1pe8rFtog4AOY fk5t6KZKuNMUjaGKR+jxOU8fd5N6zpu+qqRNrK9+3ZnuHQ3AaBaTsa6O/gEuAaEApPUQv Q3Hd3fC7HEZAL823f2DIUb5CkTJ7RUU+ZqCQQXGiB/zS4fBgRZZT/YXBrbaJmCbaNPw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ehHZXpzL; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23DAE606A32F for ; Thu, 3 Dec 2026 15:35:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23DAE606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ehHZXpzL Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 3C6694E4186C; Thu, 3 Dec 2026 15:35:04 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id EC11D604ED; Thu, 3 Dec 2026 15:35:03 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2E92211EA1873; Thu, 03 Dec 2026 16:34:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796312102; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=MS4ftMlK+nCE0d1OCG1v0yY931qdP+kpDA2EvDBYVbw=; b=ehHZXpzL6X8DFdhG5/d9Q/0cHf7dm430fH3VWALhnVe/E2nTk5nWpn0uwDg/LWA76u2AGp /N59Wn5BTKhfxw/XYeK5HRLzEC4srDTQe/eXYdAmnv9Dmvlqn9zvp+C45nEVa9q7rnLuGX yDc5LNxUXgvjGVtNw7RjAqX470lxvDvPek83N6WymVGuCOMfHrTU5o6Rmm80HIy43ymZA5 ydFa5h6S6jZAG+4pHN0wzDTQoxGyZW/wifGL/qYOWSXuQHiLPDFjtx/GW9/OIg15a3tNN7 ynLFz1xpV0Bzp1gfbdzgBiWknFIMnLDQVk5qExuUbvKFJaLzBFJZzd7giFTOYg== Message-ID: Date: Thu, 3 Dec 2026 16:34:57 +0100 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Betterbird (Linux) Subject: Re: [PATCH net-next 8/8] net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply To: netdev-bot+sashiko@kernel.org Cc: o.rempel@pengutronix.de, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, roman@damex.org, maxime.chevallier@bootlin.com, thomas.petazzoni@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Phil.Edworthy@addsecure.com, devicetree@vger.kernel.org References: <20261202-feat_tps23861-v1-8-7d8320369817@bootlin.com> <179630770354.3146.335449007968453480@kernel.org> From: Kory Maincent Content-Language: en-US In-Reply-To: <179630770354.3146.335449007968453480@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 On 12/3/26 15:21, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 3 potential > issue(s) to consider. > > Critical: 0 · High: 0 · Medium: 2 · Low: 1 > > If you believe none of the issues are legitimate, please reply to each > issue of Medium severity or higher and explain why the AI is wrong. > If any of them are legitimate and you plan to respin, please let patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (one such reply per series is enough). > > - [Medium] In drivers/net/pse-pd/tps23881.c, tps23881_i2c_probe() now > calls devm_regulator_bulk_get_enable(dev, 2, {"vdd", "vpwr"}) on the… > - [Medium] tps23881_i2c_probe() now powers the TPS2388x itself with > devm_regulator_bulk_get_enable() (line 1443), but the only wait after… > - [Low] In tps23881_i2c_probe() the devm-managed regulator enable (line > 1443) is registered before the reset GPIO (devm_gpiod_get_optional at… > > -- > > net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply > > This commit adds handling for the Vdd and Vpwr supplies to the TPS23881 > PSE controller driver. tps23881_i2c_probe() now gets and enables both > supplies with devm_regulator_bulk_get_enable() before the reset GPIO is > requested. > >> diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c >> index 5736f052732a2..759b3039ce21c 100644 >> --- a/drivers/net/pse-pd/tps23881.c >> +++ b/drivers/net/pse-pd/tps23881.c >> @@ -1419,6 +1419,7 @@ static int tps23881_setup_irq(struct tps23881_priv *priv, int irq) >> >> static int tps23881_i2c_probe(struct i2c_client *client) >> { >> + static const char * const regulators[] = { "vdd", "vpwr" }; >> struct device *dev = &client->dev; >> const struct tps23881_info *info; >> struct tps23881_priv *priv; >> @@ -1439,6 +1440,12 @@ static int tps23881_i2c_probe(struct i2c_client *client) >> if (!priv) >> return -ENOMEM; >> >> + ret = devm_regulator_bulk_get_enable(dev, ARRAY_SIZE(regulators), >> + regulators); >> + if (ret) >> + return dev_err_probe(dev, ret, >> + "Failed to enable regulators\n"); >> + > > [Severity: Medium] > On device trees with no controller-level vpwr-supply, which regulator does > the "vpwr" consumer end up with? Already reply to this on first patch. > [Severity: Medium] > Now that probe can power up the chip itself, is there still a power-on > delay when no reset GPIO is present? The only wait after power-on is > inside the reset block later in tps23881_i2c_probe(): This is right. I will move the msleep outside of the reset. > [Severity: Low] > What state is the RESET pin in when the supplies are turned off during > teardown? The RESET pin is rated −0.3 to 4 V absolute rating voltage so I think it's fail safe. -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com