OSDN Git Service

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)
commit879626e3a52630316d817cbda7cec9a5446d1d82
tree07e2e8bc3276bd75147a25688162e56c05eeb157
parentf428fe4a04cc339166c8bbd489789760de3a0cee
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: 83bf79b6bb64 ("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