Skip to content

Commit a3c9e06

Browse files
author
Izabela Bakollari
committed
net: phy: realtek: HWMON support for standalone versions of RTL8221B and RTL8251
JIRA: https://issues.redhat.com/browse/RHEL-106145 commit 64ff63a Author: Aleksander Jan Bajkowski <olek2@wp.pl> Date: Fri Jan 17 23:24:21 2025 +0100 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 <olek2@wp.pl> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Izabela Bakollari <ibakolla@redhat.com>
1 parent 75ccee4 commit a3c9e06

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
@@ -1695,6 +1695,7 @@ static struct phy_driver realtek_drvs[] = {
16951695
}, {
16961696
.match_phy_device = rtl8221b_vb_cg_c22_match_phy_device,
16971697
.name = "RTL8221B-VB-CG 2.5Gbps PHY (C22)",
1698+
.probe = rtl822x_probe,
16981699
.get_features = rtl822x_get_features,
16991700
.config_aneg = rtl822x_config_aneg,
17001701
.config_init = rtl822xb_config_init,
@@ -1707,6 +1708,7 @@ static struct phy_driver realtek_drvs[] = {
17071708
}, {
17081709
.match_phy_device = rtl8221b_vb_cg_c45_match_phy_device,
17091710
.name = "RTL8221B-VB-CG 2.5Gbps PHY (C45)",
1711+
.probe = rtl822x_probe,
17101712
.config_init = rtl822xb_config_init,
17111713
.get_rate_matching = rtl822xb_get_rate_matching,
17121714
.get_features = rtl822x_c45_get_features,
@@ -1717,6 +1719,7 @@ static struct phy_driver realtek_drvs[] = {
17171719
}, {
17181720
.match_phy_device = rtl8221b_vn_cg_c22_match_phy_device,
17191721
.name = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
1722+
.probe = rtl822x_probe,
17201723
.get_features = rtl822x_get_features,
17211724
.config_aneg = rtl822x_config_aneg,
17221725
.config_init = rtl822xb_config_init,
@@ -1729,6 +1732,7 @@ static struct phy_driver realtek_drvs[] = {
17291732
}, {
17301733
.match_phy_device = rtl8221b_vn_cg_c45_match_phy_device,
17311734
.name = "RTL8221B-VN-CG 2.5Gbps PHY (C45)",
1735+
.probe = rtl822x_probe,
17321736
.config_init = rtl822xb_config_init,
17331737
.get_rate_matching = rtl822xb_get_rate_matching,
17341738
.get_features = rtl822x_c45_get_features,
@@ -1739,6 +1743,7 @@ static struct phy_driver realtek_drvs[] = {
17391743
}, {
17401744
.match_phy_device = rtl8251b_c45_match_phy_device,
17411745
.name = "RTL8251B 5Gbps PHY",
1746+
.probe = rtl822x_probe,
17421747
.get_features = rtl822x_get_features,
17431748
.config_aneg = rtl822x_config_aneg,
17441749
.read_status = rtl822x_read_status,

0 commit comments

Comments
 (0)