@@ -843,6 +843,14 @@ static int rtl822xb_read_status(struct phy_device *phydev)
843
843
return 0 ;
844
844
}
845
845
846
+ static int rtl822x_c45_get_features (struct phy_device * phydev )
847
+ {
848
+ linkmode_set_bit (ETHTOOL_LINK_MODE_TP_BIT ,
849
+ phydev -> supported );
850
+
851
+ return genphy_c45_pma_read_abilities (phydev );
852
+ }
853
+
846
854
static int rtl822x_c45_config_aneg (struct phy_device * phydev )
847
855
{
848
856
bool changed = false;
@@ -1272,6 +1280,7 @@ static struct phy_driver realtek_drvs[] = {
1272
1280
.name = "RTL8221B-VB-CG 2.5Gbps PHY (C45)" ,
1273
1281
.config_init = rtl822xb_config_init ,
1274
1282
.get_rate_matching = rtl822xb_get_rate_matching ,
1283
+ .get_features = rtl822x_c45_get_features ,
1275
1284
.config_aneg = rtl822x_c45_config_aneg ,
1276
1285
.read_status = rtl822xb_c45_read_status ,
1277
1286
.suspend = genphy_c45_pma_suspend ,
@@ -1293,6 +1302,7 @@ static struct phy_driver realtek_drvs[] = {
1293
1302
.name = "RTL8221B-VN-CG 2.5Gbps PHY (C45)" ,
1294
1303
.config_init = rtl822xb_config_init ,
1295
1304
.get_rate_matching = rtl822xb_get_rate_matching ,
1305
+ .get_features = rtl822x_c45_get_features ,
1296
1306
.config_aneg = rtl822x_c45_config_aneg ,
1297
1307
.read_status = rtl822xb_c45_read_status ,
1298
1308
.suspend = genphy_c45_pma_suspend ,
0 commit comments