File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -3003,6 +3003,22 @@ void phy_support_eee(struct phy_device *phydev)
3003
3003
}
3004
3004
EXPORT_SYMBOL (phy_support_eee );
3005
3005
3006
+ /**
3007
+ * phy_disable_eee - Disable EEE for the PHY
3008
+ * @phydev: Target phy_device struct
3009
+ *
3010
+ * This function is used by MAC drivers for MAC's which don't support EEE.
3011
+ * It disables EEE on the PHY layer.
3012
+ */
3013
+ void phy_disable_eee (struct phy_device * phydev )
3014
+ {
3015
+ linkmode_zero (phydev -> supported_eee );
3016
+ linkmode_zero (phydev -> advertising_eee );
3017
+ phydev -> eee_cfg .tx_lpi_enabled = false;
3018
+ phydev -> eee_cfg .eee_enabled = false;
3019
+ }
3020
+ EXPORT_SYMBOL_GPL (phy_disable_eee );
3021
+
3006
3022
/**
3007
3023
* phy_support_sym_pause - Enable support of symmetrical pause
3008
3024
* @phydev: target phy_device struct
Original file line number Diff line number Diff line change @@ -2071,6 +2071,7 @@ void phy_advertise_eee_all(struct phy_device *phydev);
2071
2071
void phy_support_sym_pause (struct phy_device * phydev );
2072
2072
void phy_support_asym_pause (struct phy_device * phydev );
2073
2073
void phy_support_eee (struct phy_device * phydev );
2074
+ void phy_disable_eee (struct phy_device * phydev );
2074
2075
void phy_set_sym_pause (struct phy_device * phydev , bool rx , bool tx ,
2075
2076
bool autoneg );
2076
2077
void phy_set_asym_pause (struct phy_device * phydev , bool rx , bool tx );
You can’t perform that action at this time.
0 commit comments