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=1796220534; b=qDN4D7JV5WnLZRwcdjeDCtn62XAecRh9KRbIGMmCgXApQY/RHm1a0yXA+Kh4oGpBrA90 Y/GRBklkQ93cVf52GpVPatZ/H3PdG2Ud4ABC6SwxDzfaVNZsWEC9oA+evOrd60ZqDOdEG mavYnJPtlOxcR1M29FOosoAeMHl8ko2Q9/j7IBfxJ64GbcxlTr2dNvV4xBZ7wsLcKg6Pa iTMmDaDNME13b2HdWmoQaDZFl1orNbXr/JmzKXhN00ocD10/vBd0Mo9vpZ3SX4FbzxFxH Noju/I3oimvDKci7HTgCgHPEOwqeUze3W5X1c2xI21CyvwKqlaM7fZIZ4/84rQ2yHWQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796220534; 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=abwRJzKm9cTvNX1CQupoznGTBuPmjWmA0slK+GzbEfA=; b=xIJIY7DR0bDx7yAYJgFqeU0kKsVhL9NDw2plFEQ7UZhRxnjDiyjS+WZL2ewpxknnxstj fXfwo7hZ7Ly196aOEbguF0GRrOhvaC1okVxpQFmsLXz/uwbAT5F1IT9kfS5Fe9LvmGwS/ b5Tmbz8EhhJ/dJSzOy3EgZjyCVztzb//Tjqxp7EYLkHNQBcRkRN04muHWRsLCAVrWS46G 9WoEblEvYDcSYqLEc0FQcrOV5ZkamnGW/W6vSm2NJ9ZAAjxNPfSvRDD70zHq0OFdHkj+y K5uYJWHuai3X1j9y604j2p77UdRr3JLsX45A9/MMYAWENM5MoNh0kVqIvMRxsEwumKQ== 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=zSHEkug3; 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 9BED5606A32F for ; Wed, 2 Dec 2026 14:08:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9BED5606A32F 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=zSHEkug3 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 542FA4E41845; Wed, 2 Dec 2026 14:08:52 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2954B6075F; Wed, 2 Dec 2026 14:08:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E3D6211EA19C0; Wed, 02 Dec 2026 15:08:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796220530; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=abwRJzKm9cTvNX1CQupoznGTBuPmjWmA0slK+GzbEfA=; b=zSHEkug3fd8ixhHWFx4bDkPCHCsPrZ0JTw4G6CIj7frVVh5SisAt7rV9xbMoDE/lG44GTn kSGzxEKY8JJkxG4aIbphjzB++AsPbncUlqbCcMqWCK5TgOIeKGNinkE00Y52livBYNegj/ S6qNIAME8DQDKFzORRnYKpG4n9K00T1XlxetxtBsann+pYw7Gzo8KIOhRzMwCCaNTHPAFQ ahrzeUWhX+owRpdQfp3mHORi+fvcId4WbzaeurjZmD/1TKXoqAF+RdhNYhaQiv0hIxs/wr uQ6k5qmC+6jttpru0kcmzJp8HjRtYWwSTqz5pkeaiOI6GoRTHv6tmEgEA9oRbg== From: "Kory Maincent (AddSecure)" Date: Wed, 02 Dec 2026 15:08:12 +0100 Subject: [PATCH net-next 5/8] net: pse-pd: tps23881: Clean up register defines and comments 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-5-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 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) --- 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