From: Sebastien Royen <sebastien.royen@armadeus.com>
To: Woojung Huh <woojung.huh@microchip.com>
Cc: netdev@vger.kernel.org, Sebastien Royen <sebastien.royen@armadeus.com>
Subject: [PATCH net] net: dsa: microchip: fix KSZ8765 fiber detection
Date: Tue, 6 Oct 2026 15:00:06 +0200 [thread overview]
Message-ID: <20261006130006.134847-1-sebastien.royen@armadeus.com> (raw)
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
next reply other threads:[~2026-10-06 14:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-06 13:00 Sebastien Royen [this message]
2026-10-06 14:20 ` [PATCH net] net: dsa: microchip: fix KSZ8765 fiber detection 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261006130006.134847-1-sebastien.royen@armadeus.com \
--to=sebastien.royen@armadeus.com \
--cc=netdev@vger.kernel.org \
--cc=woojung.huh@microchip.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox