mirror of
https://github.com/VIKINGYFY/immortalwrt.git
synced 2025-12-16 17:15:26 +00:00
Changelog: 18aa36238a4d: net: phy: realtek: add interrupt support for RTL8221B 61958b33ef0b: net: phy: realtek: Add RTL8224 cable testing support ffff5c8fc2af: net: phy: realtek: fix rtl8221b-vm-cg name 2c67301584f2: net: phy: realtek: Avoid PHYCR2 access if PHYCR2 not present f63f21e82eca: net: phy: realtek: support for TRIGGER_NETDEV_LINK on RTL8211E and RTL8211F a9b24b3583ae: net: phy: realtek: add error handling to rtl8211f_get_wol Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Link: https://github.com/openwrt/openwrt/pull/20650 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
71 lines
2.9 KiB
Diff
71 lines
2.9 KiB
Diff
From ffff5c8fc2af2218a3332b3d5b97654599d50cde Mon Sep 17 00:00:00 2001
|
|
From: Aleksander Jan Bajkowski <olek2@wp.pl>
|
|
Date: Thu, 16 Oct 2025 21:22:52 +0200
|
|
Subject: [PATCH] net: phy: realtek: fix rtl8221b-vm-cg name
|
|
|
|
When splitting the RTL8221B-VM-CG into C22 and C45 variants, the name was
|
|
accidentally changed to RTL8221B-VN-CG. This patch brings back the previous
|
|
part number.
|
|
|
|
Fixes: ad5ce743a6b0 ("net: phy: realtek: Add driver instances for rtl8221b via Clause 45")
|
|
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
|
|
Reviewed-by: Simon Horman <horms@kernel.org>
|
|
Link: https://patch.msgid.link/20251016192325.2306757-1-olek2@wp.pl
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/phy/realtek/realtek_main.c | 16 ++++++++--------
|
|
1 file changed, 8 insertions(+), 8 deletions(-)
|
|
|
|
--- a/drivers/net/phy/realtek/realtek_main.c
|
|
+++ b/drivers/net/phy/realtek/realtek_main.c
|
|
@@ -156,7 +156,7 @@
|
|
#define RTL_8211FVD_PHYID 0x001cc878
|
|
#define RTL_8221B 0x001cc840
|
|
#define RTL_8221B_VB_CG 0x001cc849
|
|
-#define RTL_8221B_VN_CG 0x001cc84a
|
|
+#define RTL_8221B_VM_CG 0x001cc84a
|
|
#define RTL_8251B 0x001cc862
|
|
#define RTL_8261C 0x001cc890
|
|
|
|
@@ -1415,16 +1415,16 @@ static int rtl8221b_vb_cg_c45_match_phy_
|
|
return rtlgen_is_c45_match(phydev, RTL_8221B_VB_CG, true);
|
|
}
|
|
|
|
-static int rtl8221b_vn_cg_c22_match_phy_device(struct phy_device *phydev,
|
|
+static int rtl8221b_vm_cg_c22_match_phy_device(struct phy_device *phydev,
|
|
const struct phy_driver *phydrv)
|
|
{
|
|
- return rtlgen_is_c45_match(phydev, RTL_8221B_VN_CG, false);
|
|
+ return rtlgen_is_c45_match(phydev, RTL_8221B_VM_CG, false);
|
|
}
|
|
|
|
-static int rtl8221b_vn_cg_c45_match_phy_device(struct phy_device *phydev,
|
|
+static int rtl8221b_vm_cg_c45_match_phy_device(struct phy_device *phydev,
|
|
const struct phy_driver *phydrv)
|
|
{
|
|
- return rtlgen_is_c45_match(phydev, RTL_8221B_VN_CG, true);
|
|
+ return rtlgen_is_c45_match(phydev, RTL_8221B_VM_CG, true);
|
|
}
|
|
|
|
static int rtl_internal_nbaset_match_phy_device(struct phy_device *phydev,
|
|
@@ -1771,7 +1771,7 @@ static struct phy_driver realtek_drvs[]
|
|
.suspend = genphy_c45_pma_suspend,
|
|
.resume = rtlgen_c45_resume,
|
|
}, {
|
|
- .match_phy_device = rtl8221b_vn_cg_c22_match_phy_device,
|
|
+ .match_phy_device = rtl8221b_vm_cg_c22_match_phy_device,
|
|
.name = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
|
|
.probe = rtl822x_probe,
|
|
.get_features = rtl822x_get_features,
|
|
@@ -1784,8 +1784,8 @@ static struct phy_driver realtek_drvs[]
|
|
.read_page = rtl821x_read_page,
|
|
.write_page = rtl821x_write_page,
|
|
}, {
|
|
- .match_phy_device = rtl8221b_vn_cg_c45_match_phy_device,
|
|
- .name = "RTL8221B-VN-CG 2.5Gbps PHY (C45)",
|
|
+ .match_phy_device = rtl8221b_vm_cg_c45_match_phy_device,
|
|
+ .name = "RTL8221B-VM-CG 2.5Gbps PHY (C45)",
|
|
.probe = rtl822x_probe,
|
|
.config_init = rtl822xb_config_init,
|
|
.get_rate_matching = rtl822xb_get_rate_matching,
|