Commit b7c31ccd authored by Andrew Lunn's avatar Andrew Lunn Committed by Jakub Kicinski

net: phy-c45: Fix genphy_c45_ethtool_set_eee description

The text has been cut/paste from genphy_c45_ethtool_get_eee but not
changed to reflect it performs set.

Additionally, extend the comment. This function implements the logic
that eee_enabled has global control over EEE. When eee_enabled is
false, no link modes will be advertised, and as a result, the MAC
should not transmit LPI.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230619220332.4038924-1-andrew@lunn.chSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 634236b3
...@@ -1425,12 +1425,15 @@ int genphy_c45_ethtool_get_eee(struct phy_device *phydev, ...@@ -1425,12 +1425,15 @@ int genphy_c45_ethtool_get_eee(struct phy_device *phydev,
EXPORT_SYMBOL(genphy_c45_ethtool_get_eee); EXPORT_SYMBOL(genphy_c45_ethtool_get_eee);
/** /**
* genphy_c45_ethtool_set_eee - get EEE supported and status * genphy_c45_ethtool_set_eee - set EEE supported and status
* @phydev: target phy_device struct * @phydev: target phy_device struct
* @data: ethtool_eee data * @data: ethtool_eee data
* *
* Description: it reportes the Supported/Advertisement/LP Advertisement * Description: sets the Supported/Advertisement/LP Advertisement
* capabilities. * capabilities. If eee_enabled is false, no links modes are
* advertised, but the previously advertised link modes are
* retained. This allows EEE to be enabled/disabled in a
* non-destructive way.
*/ */
int genphy_c45_ethtool_set_eee(struct phy_device *phydev, int genphy_c45_ethtool_set_eee(struct phy_device *phydev,
struct ethtool_eee *data) struct ethtool_eee *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment