Skip to content

Commit 64ff63a

Browse files
abajkdavem330
authored andcommitted
net: phy: realtek: HWMON support for standalone versions of RTL8221B and RTL8251
HWMON support has been added for the RTL8221/8251 PHYs integrated together with the MAC inside the RTL8125/8126 chips. This patch extends temperature reading support for standalone variants of the mentioned PHYs. I don't know whether the earlier revisions of the RTL8226 also have a built-in temperature sensor, so they have been skipped for now. Tested on RTL8221B-VB-CG. Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 457bb79 commit 64ff63a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/net/phy/realtek/realtek_main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,7 @@ static struct phy_driver realtek_drvs[] = {
14751475
}, {
14761476
.match_phy_device = rtl8221b_vb_cg_c22_match_phy_device,
14771477
.name = "RTL8221B-VB-CG 2.5Gbps PHY (C22)",
1478+
.probe = rtl822x_probe,
14781479
.get_features = rtl822x_get_features,
14791480
.config_aneg = rtl822x_config_aneg,
14801481
.config_init = rtl822xb_config_init,
@@ -1487,6 +1488,7 @@ static struct phy_driver realtek_drvs[] = {
14871488
}, {
14881489
.match_phy_device = rtl8221b_vb_cg_c45_match_phy_device,
14891490
.name = "RTL8221B-VB-CG 2.5Gbps PHY (C45)",
1491+
.probe = rtl822x_probe,
14901492
.config_init = rtl822xb_config_init,
14911493
.get_rate_matching = rtl822xb_get_rate_matching,
14921494
.get_features = rtl822x_c45_get_features,
@@ -1497,6 +1499,7 @@ static struct phy_driver realtek_drvs[] = {
14971499
}, {
14981500
.match_phy_device = rtl8221b_vn_cg_c22_match_phy_device,
14991501
.name = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
1502+
.probe = rtl822x_probe,
15001503
.get_features = rtl822x_get_features,
15011504
.config_aneg = rtl822x_config_aneg,
15021505
.config_init = rtl822xb_config_init,
@@ -1509,6 +1512,7 @@ static struct phy_driver realtek_drvs[] = {
15091512
}, {
15101513
.match_phy_device = rtl8221b_vn_cg_c45_match_phy_device,
15111514
.name = "RTL8221B-VN-CG 2.5Gbps PHY (C45)",
1515+
.probe = rtl822x_probe,
15121516
.config_init = rtl822xb_config_init,
15131517
.get_rate_matching = rtl822xb_get_rate_matching,
15141518
.get_features = rtl822x_c45_get_features,
@@ -1519,6 +1523,7 @@ static struct phy_driver realtek_drvs[] = {
15191523
}, {
15201524
.match_phy_device = rtl8251b_c45_match_phy_device,
15211525
.name = "RTL8251B 5Gbps PHY",
1526+
.probe = rtl822x_probe,
15221527
.get_features = rtl822x_get_features,
15231528
.config_aneg = rtl822x_config_aneg,
15241529
.read_status = rtl822x_read_status,

0 commit comments

Comments
 (0)