Skip to contentSkip to conversation

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

PATCH In review Marco Migliore 2 participants 2 messages May 15, 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).

---
 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
#1 lore raw
Quoted 4 lines · Marco Migliore

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

Hi Marco

Please read the netdev FAQ:

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#netdev-faq

Please add a Fixes: tag, to indicate the patch which introduced the problem and needs fixing. Also, set the subject to indicate this is for the net tree.

Thanks
Andrew