mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Kory Maincent (AddSecure)" <kory.maincent@bootlin.com>
To: Oleksij Rempel <o.rempel@pengutronix.de>,
	 Andrew Lunn <andrew+netdev@lunn.ch>,
	 "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	 Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,  Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>
Cc: roman@damex.org, maxime.chevallier@bootlin.com,
	 Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	netdev@vger.kernel.org,  linux-kernel@vger.kernel.org,
	Phil.Edworthy@addsecure.com,  devicetree@vger.kernel.org,
	 "Kory Maincent (AddSecure)" <kory.maincent@bootlin.com>
Subject: [PATCH net-next 5/8] net: pse-pd: tps23881: Clean up register defines and comments
Date: Wed, 02 Dec 2026 15:08:12 +0100	[thread overview]
Message-ID: <20261202-feat_tps23861-v1-5-7d8320369817@bootlin.com> (raw)
In-Reply-To: <20261202-feat_tps23861-v1-0-7d8320369817@bootlin.com>

TPS23881_REG_DIS_EN and TPS23881_REG_DISC_EN are two names for the same
register value. Keep only TPS23881_REG_DISC_EN and fix its use.

Remove the unused TPS23881_REG_CHAN1_V and TPS23881_REG_TPON defines.

Fix the tps23881_get_of_channels() comment which talked about managers
instead of channels.

Signed-off-by: Kory Maincent (AddSecure) <kory.maincent@bootlin.com>
---
 drivers/net/pse-pd/tps23881.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c
index d993652a508d1..04ee7f8f3e18a 100644
--- a/drivers/net/pse-pd/tps23881.c
+++ b/drivers/net/pse-pd/tps23881.c
@@ -32,9 +32,8 @@
 #define TPS23881_REG_DISC	0xc
 #define TPS23881_REG_PW_STATUS	0x10
 #define TPS23881_REG_OP_MODE	0x12
-#define TPS23881_REG_DISC_EN	0x13
 #define TPS23881_OP_MODE_SEMIAUTO	0xaaaa
-#define TPS23881_REG_DIS_EN	0x13
+#define TPS23881_REG_DISC_EN	0x13
 #define TPS23881_REG_DET_CLA_EN	0x14
 #define TPS23881_REG_GEN_MASK	0x17
 #define TPS23881_REG_CLCHE	BIT(2)
@@ -50,9 +49,7 @@
 #define TPS23881_REG_4PAIR_POL1	0x2a
 #define TPS23881_REG_INPUT_V	0x2e
 #define TPS23881_REG_CHAN1_A	0x30
-#define TPS23881_REG_CHAN1_V	0x32
 #define TPS23881_REG_FOLDBACK	0x40
-#define TPS23881_REG_TPON	BIT(0)
 #define TPS23881_REG_FWREV	0x41
 #define TPS23881_REG_DEVID	0x43
 #define TPS23881_REG_CHAN1_CLASS	0x4c
@@ -531,7 +528,7 @@ tps23881_pi_get_pw_limit_ranges(struct pse_controller_dev *pcdev, int id,
 	return 1;
 }
 
-/* Parse managers subnode into a array of device node */
+/* Parse channels subnode into an array of device node */
 static int
 tps23881_get_of_channels(struct tps23881_priv *priv,
 			 struct device_node *chan_node[TPS23881_MAX_CHANS])
@@ -868,7 +865,7 @@ tps23881_set_ports_conf(struct tps23881_priv *priv,
 		return ret;
 
 	/* Disable DC disconnect */
-	ret = i2c_smbus_write_word_data(client, TPS23881_REG_DIS_EN, 0x0);
+	ret = i2c_smbus_write_word_data(client, TPS23881_REG_DISC_EN, 0x0);
 	if (ret)
 		return ret;
 

-- 
2.43.0


  parent reply	other threads:[~2026-12-02 14:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 14:08 [PATCH net-next 0/8] net: pse-pd: Preparation series for supporting the TPS23861 controller Kory Maincent
2026-12-02 14:08 ` [PATCH net-next 1/8] dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply Kory Maincent
2026-12-03 14:21   ` netdev-bot+sashiko
2026-12-03 14:55     ` Kory Maincent
2026-12-02 14:08 ` [PATCH net-next 2/8] net: pse-pd: Add helpers to convert between mW and uA Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 3/8] net: pse-pd: si3474: Use new mW/uA conversion helpers Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 4/8] net: pse-pd: tps23881: " Kory Maincent (AddSecure)
2026-12-02 14:08 ` Kory Maincent (AddSecure) [this message]
2026-12-02 14:08 ` [PATCH net-next 6/8] net: pse-pd: tps23881: Factor out power policy configuration Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 7/8] net: pse-pd: tps23881: Use fsleep instead of mdelay Kory Maincent (AddSecure)
2026-12-02 14:08 ` [PATCH net-next 8/8] net: pse-pd: tps23881: Add support for Vdd and Vpwr power supply Kory Maincent (AddSecure)
2026-12-03 14:21   ` netdev-bot+sashiko
2026-12-03 15:34     ` Kory Maincent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202-feat_tps23861-v1-5-7d8320369817@bootlin.com \
    --to=kory.maincent@bootlin.com \
    --cc=Phil.Edworthy@addsecure.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maxime.chevallier@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=roman@damex.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®