Skip to contentSkip to conversation

net: pse-pd: set user byte command SUB2 field

PATCH Applied Robert Marko 4 participants 4 messages Jun 11 – Jun 18

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: pse-pd: set user byte command SUB2 field

The Set User Byte to Save command has three subject bytes. The PD692x0 protocol guides defines SUB2 with value 0x4e, while SUB1 carries the NVM user byte.

Template only initialized SUB and SUB1.
Fill SUB2 explicitly so the command matches the documented layout.

---
 drivers/net/pse-pd/pd692x0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/pse-pd/pd692x0.c +1 -1
index cb377d5ba7af..209de9cec849 100644
@@ -200,7 +200,7 @@ static const struct pd692x0_msg pd692x0_msg_template_list[PD692X0_MSG_CNT] = {
 	},
 	[PD692X0_MSG_SET_USER_BYTE] = {
 		.key = PD692X0_KEY_PRG,
-		.sub = {0x41, PD692X0_USER_BYTE},
+		.sub = {0x41, PD692X0_USER_BYTE, 0x4e},
 		.data = {0x4e, 0x4e, 0x4e, 0x4e,
 			 0x4e, 0x4e, 0x4e, 0x4e},
 	},
Signature · 1 line
2.54.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Thu, 11 Jun 2026 12:24:49 +0200 Robert Marko <[email protected]> wrote:

The Set User Byte to Save command has three subject bytes. The PD692x0 protocol guides defines SUB2 with value 0x4e, while SUB1 carries the NVM user byte.

Template only initialized SUB and SUB1.
Fill SUB2 explicitly so the command matches the documented layout.

Thank you!

Signature · 3 lines
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
maintainer
#2 lore raw
In reply to Robert Marko
Quoted 6 lines · On Thu, 11 Jun 2026 12:24:49 +0200 Robert Marko wrote:

The Set User Byte to Save command has three subject bytes. The PD692x0 protocol guides defines SUB2 with value 0x4e, while SUB1 carries the NVM user byte.

Template only initialized SUB and SUB1.
Fill SUB2 explicitly so the command matches the documented layout.

Could you mention if you observed any misbehavior in practice? If you can see any effect of this patch it needs to include a Fixes tag so that it can be backported.

#3 lore raw
In reply to Robert Marko
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 11 Jun 2026 12:24:49 +0200 you wrote:

The Set User Byte to Save command has three subject bytes. The PD692x0 protocol guides defines SUB2 with value 0x4e, while SUB1 carries the NVM user byte.

Template only initialized SUB and SUB1.
Fill SUB2 explicitly so the command matches the documented layout.

[...]

Here is the summary with links:
- [net-next] net: pse-pd: set user byte command SUB2 field

    https://git.kernel.org/netdev/net/c/e586644d0a89

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html