diff mbox series

[net-next] net: phy: realtek: HWMON support for standalone versions of RTL8221B and RTL8251

Message ID 20250117222421.3673-1-olek2@wp.pl (mailing list archive)
State Accepted
Commit 64ff63aeefb03139ae27454bd4208244579ae88e
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: phy: realtek: HWMON support for standalone versions of RTL8221B and RTL8251 | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 1 this patch: 1
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 35 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2025-01-18--03-00 (tests: 887)

Commit Message

Aleksander Jan Bajkowski Jan. 17, 2025, 10:24 p.m. UTC
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>
---
 drivers/net/phy/realtek/realtek_main.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Andrew Lunn Jan. 19, 2025, 4:29 p.m. UTC | #1
On Fri, Jan 17, 2025 at 11:24:21PM +0100, Aleksander Jan Bajkowski wrote:
> 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>

    Andrew
patchwork-bot+netdevbpf@kernel.org Jan. 20, 2025, 12:40 p.m. UTC | #2
Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Fri, 17 Jan 2025 23:24:21 +0100 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next] net: phy: realtek: HWMON support for standalone versions of RTL8221B and RTL8251
    https://git.kernel.org/netdev/net-next/c/64ff63aeefb0

You are awesome, thank you!
diff mbox series

Patch

diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
index 38149958d95b..11ff44c3be5b 100644
--- a/drivers/net/phy/realtek/realtek_main.c
+++ b/drivers/net/phy/realtek/realtek_main.c
@@ -1475,6 +1475,7 @@  static struct phy_driver realtek_drvs[] = {
 	}, {
 		.match_phy_device = rtl8221b_vb_cg_c22_match_phy_device,
 		.name           = "RTL8221B-VB-CG 2.5Gbps PHY (C22)",
+		.probe		= rtl822x_probe,
 		.get_features   = rtl822x_get_features,
 		.config_aneg    = rtl822x_config_aneg,
 		.config_init    = rtl822xb_config_init,
@@ -1487,6 +1488,7 @@  static struct phy_driver realtek_drvs[] = {
 	}, {
 		.match_phy_device = rtl8221b_vb_cg_c45_match_phy_device,
 		.name           = "RTL8221B-VB-CG 2.5Gbps PHY (C45)",
+		.probe		= rtl822x_probe,
 		.config_init    = rtl822xb_config_init,
 		.get_rate_matching = rtl822xb_get_rate_matching,
 		.get_features   = rtl822x_c45_get_features,
@@ -1497,6 +1499,7 @@  static struct phy_driver realtek_drvs[] = {
 	}, {
 		.match_phy_device = rtl8221b_vn_cg_c22_match_phy_device,
 		.name           = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
+		.probe		= rtl822x_probe,
 		.get_features   = rtl822x_get_features,
 		.config_aneg    = rtl822x_config_aneg,
 		.config_init    = rtl822xb_config_init,
@@ -1509,6 +1512,7 @@  static struct phy_driver realtek_drvs[] = {
 	}, {
 		.match_phy_device = rtl8221b_vn_cg_c45_match_phy_device,
 		.name           = "RTL8221B-VN-CG 2.5Gbps PHY (C45)",
+		.probe		= rtl822x_probe,
 		.config_init    = rtl822xb_config_init,
 		.get_rate_matching = rtl822xb_get_rate_matching,
 		.get_features   = rtl822x_c45_get_features,
@@ -1519,6 +1523,7 @@  static struct phy_driver realtek_drvs[] = {
 	}, {
 		.match_phy_device = rtl8251b_c45_match_phy_device,
 		.name           = "RTL8251B 5Gbps PHY",
+		.probe		= rtl822x_probe,
 		.get_features   = rtl822x_get_features,
 		.config_aneg    = rtl822x_config_aneg,
 		.read_status    = rtl822x_read_status,