]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: enable EEE in MII, GMII or RGMII only
authorJerome Brunet <jbrunet@baylibre.com>
Wed, 3 Jan 2018 15:46:29 +0000 (16:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jan 2018 19:02:01 +0000 (14:02 -0500)
commitc00b37f4e6bc7e731de93accf954da60d7479045
tree07e2e8bc3276bd75147a25688162e56c05eeb157
parent1d2aa2bf54c308646842add4afe41fdb27d008b0
net: stmmac: enable EEE in MII, GMII or RGMII only

Note in the databook - Section 4.4 - EEE :
" The EEE feature is not supported when the MAC is configured to use the
TBI, RTBI, SMII, RMII or SGMII single PHY interface. Even if the MAC
supports multiple PHY interfaces, you should activate the EEE mode only
when the MAC is operating with GMII, MII, or RGMII interface."

Applying this restriction solves a stability issue observed on Amlogic
gxl platforms operating with RMII interface and the internal PHY.

Fixes: ae4fcf8c4b54 ("stmmac: disable at run-time the EEE if not supported")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c