• Andrew Lunn's avatar
    net: phy: Read EEE abilities when using .features · c2a978c1
    Andrew Lunn authored
    A PHY driver can use a static integer value to indicate what link mode
    features it supports, i.e, its abilities.. This is the old way, but
    useful when dynamically determining the devices features does not
    work, e.g. support of fibre.
    
    EEE support has been moved into phydev->supported_eee. This needs to
    be set otherwise the code assumes EEE is not supported. It is normally
    set as part of reading the devices abilities. However if a static
    integer value was used, the dynamic reading of the abilities is not
    performed. Add a call to genphy_c45_read_eee_abilities() to read the
    EEE abilities.
    
    Fixes: 8b68710a ("net: phy: start using genphy_c45_ethtool_get/set_eee()")
    Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Reviewed-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c2a978c1
phy_device.c 88.8 KB