Skip to contentSkip to conversation

net: dsa: mv88e6xxx: Fix mv88e6393x EPC write command offset

PATCH Applied Marco Migliore 3 participants 3 messages May 16, 2023 – May 17, 2023

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

PATCH 1/1 net: dsa: mv88e6xxx: Fix mv88e6393x EPC write command offset

According to datasheet, the command opcode must be specified into bits [14:12] of the Extended Port Control register (EPC).

Fixes de776d0d316f ("net: dsa: mv88e6xxx: add support for mv88e6393x family")
---
 drivers/net/dsa/mv88e6xxx/port.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/mv88e6xxx/port.h +1 -1
index aec9d4fd20e3..d19b6303b91f 100644
@@ -276,7 +276,7 @@
 /* Offset 0x10: Extended Port Control Command */
 #define MV88E6393X_PORT_EPC_CMD		0x10
 #define MV88E6393X_PORT_EPC_CMD_BUSY	0x8000
-#define MV88E6393X_PORT_EPC_CMD_WRITE	0x0300
+#define MV88E6393X_PORT_EPC_CMD_WRITE	0x3000
 #define MV88E6393X_PORT_EPC_INDEX_PORT_ETYPE	0x02
 
 /* Offset 0x11: Extended Port Control Data */
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Marco Migliore

According to datasheet, the command opcode must be specified into bits [14:12] of the Extended Port Control register (EPC).

Fixes de776d0d316f ("net: dsa: mv88e6xxx: add support for mv88e6393x family")

Hi Marco

Thanks for the respin.

For the next time you submit a patch, it is normal to put a version in the Subject line:

[PATCH net v2] net: dsa: mv88e6xxx: Fix mv88e6393x EPC write command offset

That helps us keep track of the versions, and makes it clear which is the latest version.

Andrew

#2 lore raw
In reply to Marco Migliore
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

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

Quoted 8 lines · On Tue, 16 May 2023 09:38:54 +0200 you wrote:

According to datasheet, the command opcode must be specified into bits [14:12] of the Extended Port Control register (EPC).

Fixes de776d0d316f ("net: dsa: mv88e6xxx: add support for mv88e6393x family")
---
 drivers/net/dsa/mv88e6xxx/port.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net] net: dsa: mv88e6xxx: Fix mv88e6393x EPC write command offset

    https://git.kernel.org/netdev/net/c/1323e0c6e1d7

You are awesome, thank you!

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