* [PATCH net] net: pse-pd: tps23881: Fix FOLDBACK register access width
@ 2026-12-03 14:44 Kory Maincent
2026-12-03 14:49 ` netdev-bot+sinfo
0 siblings, 1 reply; 3+ messages in thread
From: Kory Maincent @ 2026-12-03 14:44 UTC (permalink / raw)
To: Paolo Abeni, Kory Maincent, Oleksij Rempel, Jakub Kicinski,
netdev, linux-kernel
Cc: Phil.Edworthy, Sashiko, thomas.petazzoni, Andrew Lunn,
David S. Miller, Eric Dumazet
From: "Kory Maincent (AddSecure)" <kory.maincent@bootlin.com>
The register map is configured for 16-bit accesses, but the FOLDBACK
register was read and written with 8-bit accesses. All other registers
use 16-bit accesses, except for the accesses done during firmware
loading and boot configuration.
Fix the FOLDBACK register access to use 16-bit reads and writes as
well.
Without this fix, setting power limit on ports 4 to 7 may not work
properly.
Signed-off-by: Kory Maincent (AddSecure) <kory.maincent@bootlin.com>
Fixes: 7f076ce3f1733 ("net: pse-pd: tps23881: Add support for power limit and measurement features")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/bug/linux-200958a2-c64a-48bf-b1f6-1584a6f2b35d
---
drivers/net/pse-pd/tps23881.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c
index 4b1eec0fb045e..0354457c35eec 100644
--- a/drivers/net/pse-pd/tps23881.c
+++ b/drivers/net/pse-pd/tps23881.c
@@ -173,7 +173,7 @@ static int tps23881_pi_enable_manual_pol(struct tps23881_priv *priv, int id)
u8 chan;
u16 val;
- ret = i2c_smbus_read_byte_data(client, TPS23881_REG_FOLDBACK);
+ ret = i2c_smbus_read_word_data(client, TPS23881_REG_FOLDBACK);
if (ret < 0)
return ret;
@@ -183,7 +183,7 @@ static int tps23881_pi_enable_manual_pol(struct tps23881_priv *priv, int id)
*/
chan = priv->port[id].chan[0];
val = tps23881_set_val(ret, chan, 0, BIT(chan % 4), BIT(chan % 4));
- return i2c_smbus_write_byte_data(client, TPS23881_REG_FOLDBACK, val);
+ return i2c_smbus_write_word_data(client, TPS23881_REG_FOLDBACK, val);
}
static int tps23881_pi_enable(struct pse_controller_dev *pcdev, int id)
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net] net: pse-pd: tps23881: Fix FOLDBACK register access width
2026-12-03 14:44 [PATCH net] net: pse-pd: tps23881: Fix FOLDBACK register access width Kory Maincent
@ 2026-12-03 14:49 ` netdev-bot+sinfo
2026-12-03 15:19 ` Kory Maincent
0 siblings, 1 reply; 3+ messages in thread
From: netdev-bot+sinfo @ 2026-12-03 14:49 UTC (permalink / raw)
To: Kory Maincent
Cc: Paolo Abeni, Oleksij Rempel, Jakub Kicinski, netdev, linux-kernel,
Phil.Edworthy, Sashiko, thomas.petazzoni, Andrew Lunn,
David S. Miller, Eric Dumazet
Hi!
This is an automated message. This series looks like a fix, but its
commit messages seem to be missing some information:
- Whether the issue was actually triggered, or is only theoretical
(e.g. found by LLM and not proven at runtime). If it was triggered
please include the symptoms, like the stack trace or kernel messages.
Please do not repost the series just to address the above. Instead,
reply to this email with the missing information, so that reviewers
can take it into account.
*IMPORTANT*: If you do repost (for other reasons) - please include
the relevant info in the cover letter or commit messages.
--
The evaluation is done by an LLM so it may be wrong, if you think
that is the case please reply and explain.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: pse-pd: tps23881: Fix FOLDBACK register access width
2026-12-03 14:49 ` netdev-bot+sinfo
@ 2026-12-03 15:19 ` Kory Maincent
0 siblings, 0 replies; 3+ messages in thread
From: Kory Maincent @ 2026-12-03 15:19 UTC (permalink / raw)
To: netdev-bot+sinfo
Cc: Paolo Abeni, Oleksij Rempel, Jakub Kicinski, netdev, linux-kernel,
Phil.Edworthy, Sashiko, thomas.petazzoni, Andrew Lunn,
David S. Miller, Eric Dumazet
On 12/3/26 15:49, netdev-bot+sinfo@kernel.org wrote:
> Hi!
>
> This is an automated message. This series looks like a fix, but its
> commit messages seem to be missing some information:
>
> - Whether the issue was actually triggered, or is only theoretical
> (e.g. found by LLM and not proven at runtime). If it was triggered
> please include the symptoms, like the stack trace or kernel messages.
This is already written in the tags and commit message.
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-03 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 14:44 [PATCH net] net: pse-pd: tps23881: Fix FOLDBACK register access width Kory Maincent
2026-12-03 14:49 ` netdev-bot+sinfo
2026-12-03 15:19 ` Kory Maincent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox