]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: fix EEE init issue when paired with EEE capable PHYs
authorWong Vee Khee <vee.khee.wong@linux.intel.com>
Thu, 30 Sep 2021 06:44:36 +0000 (14:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Sep 2021 13:12:30 +0000 (14:12 +0100)
commita90e014895d40d461b3dcf3e528b23b9c67b80bd
tree16aee84c6eec5d1e574fb625ad9ddf77e19788df
parentfa84122fee70b44d3808e423d7f834838645ea01
net: stmmac: fix EEE init issue when paired with EEE capable PHYs

When STMMAC is paired with Energy-Efficient Ethernet(EEE) capable PHY,
and the PHY is advertising EEE by default, we need to enable EEE on the
xPCS side too, instead of having user to manually trigger the enabling
config via ethtool.

Fixed this by adding xpcs_config_eee() call in stmmac_eee_init().

Fixes: f01a4bb840be ("net: pcs: Introducing support for DWC xpcs Energy Efficient Ethernet")
Cc: Michael Sit Wei Hong <michael.wei.hong.sit@intel.com>
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c