OSDN Git Service

net: phy-c45: Fix genphy_c45_ethtool_set_eee description
authorAndrew Lunn <andrew@lunn.ch>
Mon, 19 Jun 2023 22:03:32 +0000 (00:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Jun 2023 03:35:26 +0000 (20:35 -0700)
commitb7c31ccd60d1df4634670e3eb9902baa19b9517b
tree23bc1e7f15915c3234cc4281ec8863bd1283cc3c
parent634236b34d7a8c9e11c12b0746b83b8942fc8f2e
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: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230619220332.4038924-1-andrew@lunn.ch
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy-c45.c