* [PATCH net] net: pse-pd: tps23881: Fix current measurement scaling
@ 2025-10-06 20:40 Thomas Wismer
2025-10-07 8:53 ` Kory Maincent
2025-10-08 1:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Wismer @ 2025-10-06 20:40 UTC (permalink / raw)
To: Oleksij Rempel, Kory Maincent, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: Thomas Wismer, netdev, linux-kernel
From: Thomas Wismer <thomas.wismer@scs.ch>
The TPS23881 improves on the TPS23880 with current sense resistors reduced
from 255 mOhm to 200 mOhm. This has a direct impact on the scaling of the
current measurement. However, the latest TPS23881 data sheet from May 2023
still shows the scaling of the TPS23880 model.
Fixes: 7f076ce3f1733 ("net: pse-pd: tps23881: Add support for power limit and measurement features")
Signed-off-by: Thomas Wismer <thomas.wismer@scs.ch>
---
drivers/net/pse-pd/tps23881.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c
index 63f8f43062bc..b724b222ab44 100644
--- a/drivers/net/pse-pd/tps23881.c
+++ b/drivers/net/pse-pd/tps23881.c
@@ -62,7 +62,7 @@
#define TPS23881_REG_SRAM_DATA 0x61
#define TPS23881_UV_STEP 3662
-#define TPS23881_NA_STEP 70190
+#define TPS23881_NA_STEP 89500
#define TPS23881_MW_STEP 500
#define TPS23881_MIN_PI_PW_LIMIT_MW 2000
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net] net: pse-pd: tps23881: Fix current measurement scaling
2025-10-06 20:40 [PATCH net] net: pse-pd: tps23881: Fix current measurement scaling Thomas Wismer
@ 2025-10-07 8:53 ` Kory Maincent
2025-10-08 1:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Kory Maincent @ 2025-10-07 8:53 UTC (permalink / raw)
To: Thomas Wismer
Cc: Oleksij Rempel, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Thomas Wismer, netdev, linux-kernel
On Mon, 6 Oct 2025 22:40:29 +0200
Thomas Wismer <thomas@wismer.xyz> wrote:
> From: Thomas Wismer <thomas.wismer@scs.ch>
>
> The TPS23881 improves on the TPS23880 with current sense resistors reduced
> from 255 mOhm to 200 mOhm. This has a direct impact on the scaling of the
> current measurement. However, the latest TPS23881 data sheet from May 2023
> still shows the scaling of the TPS23880 model.
>
> Fixes: 7f076ce3f1733 ("net: pse-pd: tps23881: Add support for power limit and
> measurement features") Signed-off-by: Thomas Wismer <thomas.wismer@scs.ch>
Acked-by: Kory Maincent <kory.maincent@bootlin.com>
Thank you!
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net] net: pse-pd: tps23881: Fix current measurement scaling
2025-10-06 20:40 [PATCH net] net: pse-pd: tps23881: Fix current measurement scaling Thomas Wismer
2025-10-07 8:53 ` Kory Maincent
@ 2025-10-08 1:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-10-08 1:50 UTC (permalink / raw)
To: Thomas Wismer
Cc: o.rempel, kory.maincent, andrew+netdev, davem, edumazet, kuba,
pabeni, thomas.wismer, netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 6 Oct 2025 22:40:29 +0200 you wrote:
> From: Thomas Wismer <thomas.wismer@scs.ch>
>
> The TPS23881 improves on the TPS23880 with current sense resistors reduced
> from 255 mOhm to 200 mOhm. This has a direct impact on the scaling of the
> current measurement. However, the latest TPS23881 data sheet from May 2023
> still shows the scaling of the TPS23880 model.
>
> [...]
Here is the summary with links:
- [net] net: pse-pd: tps23881: Fix current measurement scaling
https://git.kernel.org/netdev/net/c/2c95a756e0cf
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-10-08 1:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 20:40 [PATCH net] net: pse-pd: tps23881: Fix current measurement scaling Thomas Wismer
2025-10-07 8:53 ` Kory Maincent
2025-10-08 1:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox