net: phy: LAN937x: added PHY_POLL_CABLE_TEST flag
authorArun Ramadoss <arun.ramadoss@microchip.com>
Wed, 13 Apr 2022 07:14:09 +0000 (12:44 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 09:50:01 +0000 (10:50 +0100)
Added the phy_poll_cable_test flag for the lan937x phy driver.
Tested using command -  ethtool --cable-test <dev>

Fixes: 680baca546f2 ("net: phy: added the LAN937x phy support")
Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/microchip_t1.c

index 3f79bbb..c2c0e36 100644 (file)
@@ -743,6 +743,7 @@ static struct phy_driver microchip_t1_phy_driver[] = {
        {
                PHY_ID_MATCH_MODEL(PHY_ID_LAN937X),
                .name           = "Microchip LAN937x T1",
+               .flags          = PHY_POLL_CABLE_TEST,
                .features       = PHY_BASIC_T1_FEATURES,
                .config_init    = lan87xx_config_init,
                .suspend        = genphy_suspend,