Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Aleksander Jan Bajkowski and committed by
Jakub Kicinski
ffff5c8f 902e81e6

+8 -8
+8 -8
drivers/net/phy/realtek/realtek_main.c
··· 154 154 #define RTL_8211FVD_PHYID 0x001cc878 155 155 #define RTL_8221B 0x001cc840 156 156 #define RTL_8221B_VB_CG 0x001cc849 157 - #define RTL_8221B_VN_CG 0x001cc84a 157 + #define RTL_8221B_VM_CG 0x001cc84a 158 158 #define RTL_8251B 0x001cc862 159 159 #define RTL_8261C 0x001cc890 160 160 ··· 1523 1523 return rtlgen_is_c45_match(phydev, RTL_8221B_VB_CG, true); 1524 1524 } 1525 1525 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, 1527 1527 const struct phy_driver *phydrv) 1528 1528 { 1529 - return rtlgen_is_c45_match(phydev, RTL_8221B_VN_CG, false); 1529 + return rtlgen_is_c45_match(phydev, RTL_8221B_VM_CG, false); 1530 1530 } 1531 1531 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, 1533 1533 const struct phy_driver *phydrv) 1534 1534 { 1535 - return rtlgen_is_c45_match(phydev, RTL_8221B_VN_CG, true); 1535 + return rtlgen_is_c45_match(phydev, RTL_8221B_VM_CG, true); 1536 1536 } 1537 1537 1538 1538 static int rtl_internal_nbaset_match_phy_device(struct phy_device *phydev, ··· 1879 1879 .suspend = genphy_c45_pma_suspend, 1880 1880 .resume = rtlgen_c45_resume, 1881 1881 }, { 1882 - .match_phy_device = rtl8221b_vn_cg_c22_match_phy_device, 1882 + .match_phy_device = rtl8221b_vm_cg_c22_match_phy_device, 1883 1883 .name = "RTL8221B-VM-CG 2.5Gbps PHY (C22)", 1884 1884 .probe = rtl822x_probe, 1885 1885 .get_features = rtl822x_get_features, ··· 1892 1892 .read_page = rtl821x_read_page, 1893 1893 .write_page = rtl821x_write_page, 1894 1894 }, { 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)", 1897 1897 .probe = rtl822x_probe, 1898 1898 .config_init = rtl822xb_config_init, 1899 1899 .get_rate_matching = rtl822xb_get_rate_matching,