summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlexandre Messier <amessier@tycoint.com>2016-01-22 14:16:15 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 13:20:28 -0600
commit53b0c38c7a691d13d53c08e4c4ebbfd2612f20a7 (patch)
tree43cca01cd72ac66f7c7ee0e94bcb4bbeec3c80f5 /drivers
parent79e3efd5e54acba20a5af94f713d7aae5e540d09 (diff)
downloadu-boot-imx-53b0c38c7a691d13d53c08e4c4ebbfd2612f20a7.zip
u-boot-imx-53b0c38c7a691d13d53c08e4c4ebbfd2612f20a7.tar.gz
u-boot-imx-53b0c38c7a691d13d53c08e4c4ebbfd2612f20a7.tar.bz2
net: phy: Set ANRESTART in setup_forced
When configuring a PHY in fixed (forced) link mode, in order for the changes to be applied, either one of these conditions must be triggered: 1- PHY is reset 2- Autoneg is restarted 3- PHY transitions from power-down to power-up Neither of these is currently done, so effectively the fixed link configuration is not applied in the PHY. Fix this by setting the Autoneg restart bit. Signed-off-by: Alexandre Messier <amessier@tycoint.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index e25d4e3..a06115d 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -128,7 +128,7 @@ static int genphy_config_advert(struct phy_device *phydev)
static int genphy_setup_forced(struct phy_device *phydev)
{
int err;
- int ctl = 0;
+ int ctl = BMCR_ANRESTART;
phydev->pause = phydev->asym_pause = 0;