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)
commit656ed8b015f19bf3f6e6b3ddd9a4bb4aa5ca73e1
tree16aee84c6eec5d1e574fb625ad9ddf77e19788df
parenta5b8fd657881003ea11c193d147c8f4ba143725d
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: 7617af3d1a5e ("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