From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796220546; b=lgAD36XOKffDuwvBMrJORjs858bhjtxU0E629ExjGbpM9Ts5sC8Z/VTGHnBMyPB5x0eO hz0MjFeJyOWdxPMgDigI9Mgz6T3ZkqPQNEi/d79rz/O4UZtyUHR5+aAMJK7RkZp4Hhdb9 UAjuGTQMJz58+cw2M9pOxjNiPxbR1zm+2gnCCP7syB91/Xb+14TfzAw8B9P4LRklBoTey MGkq19zE038sksHBU1ddnc8I2nllQSQCDrRguKRg4K1ue01VFLov31SQ6MZg78cFwsAOW 4+l37YfMmYQvz+aBKQlfUJtlXtSDVPHaOedggUSwPDdMqiYZlZ30iP8NJLbQCp1sPBg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796220546; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Last-TLS-Session-Version; bh=1kfUBQK6yqI2chTASwcXQ87j1/Le+2INsEmE76XRf80=; b=GlonFciEkhEOYMwjGmpEcR3HmQtQs0WxX41fCutLaqYSOANbAmMeFl9sLxXK5jn6WfD0 pY9nIGO/mNyxTItW2AV9Xc8QD+N32O90pFTA1zyuI3Wxiz0cAg9CoaCkgXEVp7mQrhznW 3ZKrqE4gACypdW3NRsrZo8yB/S5hcn2jdNSBso3XboPQIlOsMdEfU/cnviIsvYqn/BmN/ JdOx1RvoYmINIzJVq7JlsaZo4ghGkGpb7DTQzED7BxxPIEinBMXX07r4h9IammxR1RKo/ FoPYvAGglnRNZ7s9cB1zW04TVqdVSZoPNJTiwbIQUYT6nJqqXWIemZI3MuSfUQE08pA== 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=xaDhyghd; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 85E67606A31A; Wed, 2 Dec 2026 14:09:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85E67606A31A 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=xaDhyghd Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 2CD6AC0133B; Wed, 2 Dec 2026 14:09:15 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2B3206075F; Wed, 2 Dec 2026 14:09:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9CBEA11EA19F6; Wed, 02 Dec 2026 15:08:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796220539; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=1kfUBQK6yqI2chTASwcXQ87j1/Le+2INsEmE76XRf80=; b=xaDhyghdKEi2vZPAs63SkH+RCwhUwxi4rcDSPDb1rX8fZdlUhoJ73cCna6Zc0UDuH3grty RfPmVIt7Jgza6/VvNfcqxmQRWZ5KiiwOG2sbJ6pWWaURYpU6uz8VYfrBQg27k4H7/JOFAG SosOBubhefDgI50+q27hC6WoDnqgAjBdEkiKdYOMcHVE7P+hyMPsYy/8eMyRb6LgMMh/jv 6Wgp0hFr7I1pTF7XuRT+GCL86peY6XGN1fdhWdh71hMitDOJakGZ6egE7xCKe9lRh6VFVG DkEnd3sC3N6aa70ti9bTIytg+t+jlBiQzRiFW3t6iy8WE13iTMWSxBr7O4vH1g== From: "Kory Maincent (AddSecure)" Date: Wed, 02 Dec 2026 15:08:15 +0100 Subject: [PATCH net-next 8/8] net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-feat_tps23861-v1-8-7d8320369817@bootlin.com> References: <20261202-feat_tps23861-v1-0-7d8320369817@bootlin.com> In-Reply-To: <20261202-feat_tps23861-v1-0-7d8320369817@bootlin.com> To: Oleksij Rempel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: roman@damex.org, maxime.chevallier@bootlin.com, Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Phil.Edworthy@addsecure.com, devicetree@vger.kernel.org, "Kory Maincent (AddSecure)" X-Mailer: b4 0.16.1-dev-17221 X-Last-TLS-Session-Version: TLSv1.3 Add support for the Vdd and the Vpwr power supply, and enable them at probe time. Signed-off-by: Kory Maincent (AddSecure) --- drivers/net/pse-pd/tps23881.c | 7 +++++++ 1 file changed, 7 insertions(+) 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"); + reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(reset)) return dev_err_probe(&client->dev, PTR_ERR(reset), "Failed to get reset GPIO\n"); -- 2.43.0