mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
net: phy: realtek: add support for RTL8261D
RTL8261D is also 10g phy. It's sub_phy_id is 0x81. And it does not need any firmware. Reviewed-by: Maxime Chevallier <[email protected]> Signed-off-by: Javen Xu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
@@ -260,6 +260,7 @@
|
||||
#define RTL_8261C_CG 0x001cc898
|
||||
|
||||
#define RTL8261C_CE_MODEL 0x00
|
||||
#define RTL8261D_MODEL 0x81
|
||||
#define RTL8261X_INT_AUTONEG_ERROR BIT(0)
|
||||
#define RTL8261X_INT_PAGE_RECV BIT(2)
|
||||
#define RTL8261X_INT_AUTONEG_DONE BIT(3)
|
||||
@@ -413,6 +414,10 @@ static int rtl8261x_probe(struct phy_device *phydev)
|
||||
phydev_info(phydev, "RTL8261C detected (sub_id 0x%02x)\n", sub_phy_id);
|
||||
break;
|
||||
|
||||
case RTL8261D_MODEL:
|
||||
phydev_info(phydev, "RTL8261D detected (sub_id 0x%02x)\n", sub_phy_id);
|
||||
break;
|
||||
|
||||
default:
|
||||
phydev_warn(phydev, "Unknown sub_id 0x%02x, default behavior\n", sub_phy_id);
|
||||
return -ENODEV;
|
||||
@@ -3397,7 +3402,7 @@ static struct phy_driver realtek_drvs[] = {
|
||||
.write_mmd = genphy_write_mmd_unsupported,
|
||||
}, {
|
||||
PHY_ID_MATCH_EXACT(RTL_8261C_CG),
|
||||
.name = "Realtek RTL8261C 10Gbps PHY",
|
||||
.name = "Realtek RTL8261C/D 10Gbps PHY",
|
||||
.probe = rtl8261x_probe,
|
||||
.config_init = rtl8261x_config_init,
|
||||
.get_features = rtl8261x_get_features,
|
||||
|
||||
Reference in New Issue
Block a user