diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-03-25 00:36:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-26 21:19:24 +0100 |
commit | a62ea5a75fdd4c0052bdbacd1e653b00a9f88f6d (patch) | |
tree | e43a89355affefc56828825eabc337739f7f592c /drivers/net/phy/bcm7xxx.c | |
parent | net: phy: bcm7xxx: fix spurious MDIO failures during workaround (diff) | |
download | linux-a62ea5a75fdd4c0052bdbacd1e653b00a9f88f6d.tar.xz linux-a62ea5a75fdd4c0052bdbacd1e653b00a9f88f6d.zip |
net: phy: bcm7xxx: properly clear AFE_RX_LP_COUNTER
The AFE_RX_LP_COUNTER kept the last 3 bits set, which would not properly
clear the EEE LPI mode errors bits. Make sure that those bits are set to
0 to ensure the PHY timing is always good even during EEE wake-up.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/bcm7xxx.c')
-rw-r--r-- | drivers/net/phy/bcm7xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c index 5991168bcbef..526b94cea569 100644 --- a/drivers/net/phy/bcm7xxx.c +++ b/drivers/net/phy/bcm7xxx.c @@ -135,7 +135,7 @@ static int bcm7xxx_28nm_afe_config_init(struct phy_device *phydev) phy_write_misc(phydev, AFE_RXCONFIG_1, 0x9a3f); /* write AFE_RX_LP_COUNTER */ - phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc7); + phy_write_misc(phydev, AFE_RX_LP_COUNTER, 0x7fc0); /* write AFE_HPF_TRIM_OTHERS */ phy_write_misc(phydev, AFE_HPF_TRIM_OTHERS, 0x000b); |