Skip to content

Commit ffff5c8

Browse files
abajkkuba-moo
authored andcommitted
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: ad5ce74 ("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>
1 parent 902e81e commit ffff5c8

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

drivers/net/phy/realtek/realtek_main.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
#define RTL_8211FVD_PHYID 0x001cc878
155155
#define RTL_8221B 0x001cc840
156156
#define RTL_8221B_VB_CG 0x001cc849
157-
#define RTL_8221B_VN_CG 0x001cc84a
157+
#define RTL_8221B_VM_CG 0x001cc84a
158158
#define RTL_8251B 0x001cc862
159159
#define RTL_8261C 0x001cc890
160160

@@ -1523,16 +1523,16 @@ static int rtl8221b_vb_cg_c45_match_phy_device(struct phy_device *phydev,
15231523
return rtlgen_is_c45_match(phydev, RTL_8221B_VB_CG, true);
15241524
}
15251525

1526-
static int rtl8221b_vn_cg_c22_match_phy_device(struct phy_device *phydev,
1526+
static int rtl8221b_vm_cg_c22_match_phy_device(struct phy_device *phydev,
15271527
const struct phy_driver *phydrv)
15281528
{
1529-
return rtlgen_is_c45_match(phydev, RTL_8221B_VN_CG, false);
1529+
return rtlgen_is_c45_match(phydev, RTL_8221B_VM_CG, false);
15301530
}
15311531

1532-
static int rtl8221b_vn_cg_c45_match_phy_device(struct phy_device *phydev,
1532+
static int rtl8221b_vm_cg_c45_match_phy_device(struct phy_device *phydev,
15331533
const struct phy_driver *phydrv)
15341534
{
1535-
return rtlgen_is_c45_match(phydev, RTL_8221B_VN_CG, true);
1535+
return rtlgen_is_c45_match(phydev, RTL_8221B_VM_CG, true);
15361536
}
15371537

15381538
static int rtl_internal_nbaset_match_phy_device(struct phy_device *phydev,
@@ -1879,7 +1879,7 @@ static struct phy_driver realtek_drvs[] = {
18791879
.suspend = genphy_c45_pma_suspend,
18801880
.resume = rtlgen_c45_resume,
18811881
}, {
1882-
.match_phy_device = rtl8221b_vn_cg_c22_match_phy_device,
1882+
.match_phy_device = rtl8221b_vm_cg_c22_match_phy_device,
18831883
.name = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
18841884
.probe = rtl822x_probe,
18851885
.get_features = rtl822x_get_features,
@@ -1892,8 +1892,8 @@ static struct phy_driver realtek_drvs[] = {
18921892
.read_page = rtl821x_read_page,
18931893
.write_page = rtl821x_write_page,
18941894
}, {
1895-
.match_phy_device = rtl8221b_vn_cg_c45_match_phy_device,
1896-
.name = "RTL8221B-VN-CG 2.5Gbps PHY (C45)",
1895+
.match_phy_device = rtl8221b_vm_cg_c45_match_phy_device,
1896+
.name = "RTL8221B-VM-CG 2.5Gbps PHY (C45)",
18971897
.probe = rtl822x_probe,
18981898
.config_init = rtl822xb_config_init,
18991899
.get_rate_matching = rtl822xb_get_rate_matching,

0 commit comments

Comments
 (0)