Skip to content

Commit

Permalink
net: phy: Add mac_supports_eee variable for EEE support and LPI handling
Browse files Browse the repository at this point in the history
This commit introduces a new variable, mac_supports_eee, to the PHY
layer. This variable is used to indicate if a MAC provides EEE support
or is responsible for Low Power Idle (LPI) handling. The
mac_supports_eee variable should be used in conjunction with
is_smart_eee_phy to make proper configuration decisions based on the
capabilities of both the PHY and MAC.

By adding the mac_supports_eee variable, PHY drivers and the PHYlib
framework can better coordinate EEE and LPI management between the PHY
and MAC.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
  • Loading branch information
olerem authored and intel-lab-lkp committed Mar 27, 2023
1 parent f353262 commit 899e48b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/phy.h
Expand Up @@ -548,6 +548,7 @@ struct macsec_ops;
* @is_on_sfp_module: Set true if PHY is located on an SFP module.
* @mac_managed_pm: Set true if MAC driver takes of suspending/resuming PHY
* @is_smart_eee_phy: Set true if PHY is a Smart EEE PHY
* @mac_supports_eee: Set true if MAC supports EEE
* @state: State of the PHY for management purposes
* @dev_flags: Device-specific flags used by the PHY driver.
*
Expand Down Expand Up @@ -644,6 +645,7 @@ struct phy_device {
unsigned is_on_sfp_module:1;
unsigned mac_managed_pm:1;
unsigned is_smart_eee_phy:1;
unsigned mac_supports_eee:1;

unsigned autoneg:1;
/* The most recently read link state */
Expand Down

0 comments on commit 899e48b

Please sign in to comment.