Skip to content

Commit 16416c8

Browse files
ParthibanI17164kuba-moo
authored andcommitted
net: phy: microchip_t1s: add SQI support for LAN867x Rev.D0 PHYs
Add support for Signal Quality Index (SQI) reporting in the Microchip T1S PHY driver for LAN867x Rev.D0 (OATC14-compliant) PHYs. This patch registers the following callbacks in the microchip_t1s driver structure: - .get_sqi - returns the current SQI value - .get_sqi_max - returns the maximum SQI value This enables ethtool to report the SQI value for LAN867x Rev.D0 PHYs. Signed-off-by: Parthiban Veerasooran <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 5e1bf5a commit 16416c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/phy/microchip_t1s.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,8 @@ static struct phy_driver microchip_t1s_driver[] = {
575575
.get_plca_status = genphy_c45_plca_get_status,
576576
.cable_test_start = genphy_c45_oatc14_cable_test_start,
577577
.cable_test_get_status = genphy_c45_oatc14_cable_test_get_status,
578+
.get_sqi = genphy_c45_oatc14_get_sqi,
579+
.get_sqi_max = genphy_c45_oatc14_get_sqi_max,
578580
},
579581
{
580582
PHY_ID_MATCH_EXACT(PHY_ID_LAN865X_REVB),

0 commit comments

Comments
 (0)