]> 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)
commited829fbde9ba384663cc9568ef7a9a96bbeb2aa1
tree16aee84c6eec5d1e574fb625ad9ddf77e19788df
parente75eeaf8f4f2d9a7a57ee3248462557234724906
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: a8fbf22b480a ("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