From: John-Michael Mulesa <jmulesa@gmail.com>
To: netdev@vger.kernel.org
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Markus Stockhausen <markus.stockhausen@gmx.de>,
John-Michael Mulesa <jmulesa@gmail.com>
Subject: [PATCH net-next 1/2] net: phy: realtek: rename the 0x001cc862 PHY to RTL8251BE
Date: Tue, 1 Dec 2026 15:31:13 -0500 [thread overview]
Message-ID: <20261201203114.1274260-2-jmulesa@gmail.com> (raw)
In-Reply-To: <20261201203114.1274260-1-jmulesa@gmail.com>
Commit 5befa3728b85 ("net: phy: realtek: add support for
RTL8126A-integrated 5Gbps PHY") added the stand-alone PHY with ID
0x001cc862 as the RTL8251B. Realtek's own PHY driver, as shipped in
their SDK, names this ID RTL8251BE and marks it as an engineering
sample. The mass production RTL8251B reports 0x001cc86a instead.
Rename the define, the Clause 45 match function and the driver to
RTL8251BE, so that the RTL8251B name is free for the production part.
The RTL8126A-integrated PHY reports the same ID and is still matched by
the internal NBASE-T driver.
Apart from the driver name, there is no functional change.
The code and this changelog were drafted with the help of an AI coding
assistant (Claude, claude-opus-5-5).
Suggested-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Signed-off-by: John-Michael Mulesa <jmulesa@gmail.com>
---
drivers/net/phy/realtek/realtek_main.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net/phy/realtek/realtek_main.c b/drivers/net/phy/realtek/realtek_main.c
index a39ad1838..ece327d3c 100644
--- a/drivers/net/phy/realtek/realtek_main.c
+++ b/drivers/net/phy/realtek/realtek_main.c
@@ -264,7 +264,7 @@
#define RTL_8221B 0x001cc840
#define RTL_8221B_VB_CG 0x001cc849
#define RTL_8221B_VM_CG 0x001cc84a
-#define RTL_8251B 0x001cc862
+#define RTL_8251BE 0x001cc862
#define RTL_8261C 0x001cc890
#define RTL_8261C_CG 0x001cc898
#define RTL_8261CE_CG 0x001cc899
@@ -2907,7 +2907,7 @@ static int rtl_internal_nbaset_match_phy_device(struct phy_device *phydev,
switch (phydev->phy_id) {
case RTL_GENERIC_PHYID:
case RTL_8221B:
- case RTL_8251B:
+ case RTL_8251BE:
case RTL_8261C:
case 0x001cc841:
break;
@@ -2918,10 +2918,10 @@ static int rtl_internal_nbaset_match_phy_device(struct phy_device *phydev,
return rtlgen_supports_2_5gbps(phydev) && !rtlgen_supports_mmd(phydev);
}
-static int rtl8251b_c45_match_phy_device(struct phy_device *phydev,
- const struct phy_driver *phydrv)
+static int rtl8251be_c45_match_phy_device(struct phy_device *phydev,
+ const struct phy_driver *phydrv)
{
- return rtlgen_is_c45_match(phydev, RTL_8251B, true);
+ return rtlgen_is_c45_match(phydev, RTL_8251BE, true);
}
static int rtlgen_resume(struct phy_device *phydev)
@@ -3399,8 +3399,8 @@ static struct phy_driver realtek_drvs[] = {
.led_hw_control_get = rtl822xb_led_hw_control_get,
.led_hw_control_set = rtl822xb_led_hw_control_set,
}, {
- .match_phy_device = rtl8251b_c45_match_phy_device,
- .name = "RTL8251B 5Gbps PHY",
+ .match_phy_device = rtl8251be_c45_match_phy_device,
+ .name = "RTL8251BE 5Gbps PHY",
.probe = rtl822x_probe,
.get_features = rtl822x_get_features,
.config_aneg = rtl822x_config_aneg,
--
2.56.1
next prev parent reply other threads:[~2026-12-01 20:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 20:31 [PATCH net-next 0/2] net: phy: realtek: add the mass production RTL8251B John-Michael Mulesa
2026-12-01 20:31 ` John-Michael Mulesa [this message]
2026-12-01 20:31 ` [PATCH net-next 2/2] net: phy: realtek: add support for the RTL8251B 5Gbps PHY John-Michael Mulesa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201203114.1274260-2-jmulesa@gmail.com \
--to=jmulesa@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=markus.stockhausen@gmx.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox