[openwrt/openwrt] realtek: rtl93xx: Do not use media register to get link status
LEDE Commits
lede-commits at lists.infradead.org
Thu Aug 7 06:53:24 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2645c4afbb0935ed91d38c961037465078078064
commit 2645c4afbb0935ed91d38c961037465078078064
Author: Harshal Gohel <hg at simonwunderlich.de>
AuthorDate: Thu Jul 3 13:28:22 2025 +0000
realtek: rtl93xx: Do not use media register to get link status
The media_sts register only shows type of link, fiber/copper,
and has nothing to do with the link status
Signed-off-by: Harshal Gohel <hg at simonwunderlich.de>
Signed-off-by: Sharadanand Karanjkar <sk at simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19575
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
index 425fffd065..10438298ad 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c
@@ -653,9 +653,6 @@ static void rtl93xx_pcs_get_state(struct phylink_pcs *pcs,
if (priv->family_id == RTL9300_FAMILY_ID)
media = sw_r32(RTL930X_MAC_LINK_MEDIA_STS);
- if (media & BIT_ULL(port))
- state->link = 1;
-
pr_debug("%s: link state port %d: %llx, media %llx\n", __func__, port,
link & BIT_ULL(port), media);
More information about the lede-commits
mailing list