diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 21:11:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-10 21:11:02 +0000 |
commit | a17a58e310e41829a634ac507477a0f6457a65d0 (patch) | |
tree | 35a4ed66e80e43de424f0c8de9904a820545ed0e /target/linux/generic/files/drivers/net/phy/ar8216.c | |
parent | 9c51ab13d386497081de772ba5689cacc13e7b4d (diff) | |
download | master-31e0f0ae-a17a58e310e41829a634ac507477a0f6457a65d0.tar.gz master-31e0f0ae-a17a58e310e41829a634ac507477a0f6457a65d0.tar.bz2 master-31e0f0ae-a17a58e310e41829a634ac507477a0f6457a65d0.zip |
ar8216: disable EEE by default on AR8327 to fix stability issues (#14597)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41577
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 3f60878723..fe0ddb9b1b 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -1626,6 +1626,15 @@ ar8327_init_globals(struct ar8xxx_priv *priv) /* Enable MIB counters */ ar8xxx_reg_set(priv, AR8327_REG_MODULE_EN, AR8327_MODULE_EN_MIB); + + /* Disable EEE on all ports due to stability issues */ + t = priv->read(priv, AR8327_REG_EEE_CTRL); + t |= AR8327_EEE_CTRL_DISABLE_PHY(0) | + AR8327_EEE_CTRL_DISABLE_PHY(1) | + AR8327_EEE_CTRL_DISABLE_PHY(2) | + AR8327_EEE_CTRL_DISABLE_PHY(3) | + AR8327_EEE_CTRL_DISABLE_PHY(4); + priv->write(priv, AR8327_REG_EEE_CTRL, t); } static void |