Netdev List
 help / color / mirror / Atom feed
* [PATCH net] net: dsa: microchip: fix KSZ8765 fiber detection
@ 2026-10-06 13:00 Sebastien Royen
  2026-10-06 14:20 ` netdev-bot+sinfo
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sebastien Royen @ 2026-10-06 13:00 UTC (permalink / raw)
  To: Woojung Huh; +Cc: netdev, Sebastien Royen

The KSZ8765 is similar to the KSZ8795 but has two fiber ports.

KSZ8_PORT_STATUS_0 is used to detect fiber mode. It is currently
defined as 0x08, which is the Global Control 6 MIB Control register
and has bit 7 defined as Flush Counter.

Set KSZ8_PORT_STATUS_0 to 0x18, which is the Port 1 Status 0 register
where bit 7 is the Fiber Mode bit.

Signed-off-by: Sebastien Royen <sebastien.royen@armadeus.com>
---
 drivers/net/dsa/microchip/ksz_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/microchip/ksz_common.h b/drivers/net/dsa/microchip/ksz_common.h
index cbe98494578c..f6104f714a8d 100644
--- a/drivers/net/dsa/microchip/ksz_common.h
+++ b/drivers/net/dsa/microchip/ksz_common.h
@@ -853,7 +853,7 @@ static inline bool ksz_is_sgmii_port(struct ksz_device *dev, int port)
 #define KSZ88_FAMILY_ID			0x88
 #define KSZ8895_FAMILY_ID		0x95
 
-#define KSZ8_PORT_STATUS_0		0x08
+#define KSZ8_PORT_STATUS_0		0x18
 #define KSZ8_PORT_FIBER_MODE		BIT(7)
 
 #define SW_CHIP_ID_M			GENMASK(7, 4)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-10-08 17:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 13:00 [PATCH net] net: dsa: microchip: fix KSZ8765 fiber detection Sebastien Royen
2026-10-06 14:20 ` netdev-bot+sinfo
2026-10-06 14:48   ` Sébastien Royen
2026-10-06 16:16     ` Andrew Lunn
2026-10-06 16:21       ` Nicolai Buchwitz
2026-10-06 18:24         ` Andrew Lunn
2026-10-06 21:28           ` Nicolai Buchwitz
2026-10-07  8:05 ` [PATCH net v2] " Sebastien Royen
2026-10-07  8:14   ` Nicolai Buchwitz
2026-10-07 14:10   ` netdev-bot+sinfo
2026-10-08 17:50   ` patchwork-bot+netdevbpf
2026-10-07 14:18 ` [PATCH net] " netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox