diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-02-24 10:34:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-25 08:54:40 +0100 |
commit | 62acc70dc1c00a1ea86af34e8d5020ac39e96e9f (patch) | |
tree | 869ce8ceccc70329bd862816c3393aed9eb3af8a /drivers/net/phy/phy.c | |
parent | 7ba9f45f6a1c500a3b06a7d14399757288af9a90 (diff) | |
download | barebox-62acc70dc1c00a1ea86af34e8d5020ac39e96e9f.tar.gz barebox-62acc70dc1c00a1ea86af34e8d5020ac39e96e9f.tar.xz |
phy: fix force mode
do not try to read the status in force mode
the link is up
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r-- | drivers/net/phy/phy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 1cf2cb97a3..12739ff361 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -549,6 +549,10 @@ int genphy_read_status(struct phy_device *phydev) int lpa; int lpagb = 0; + /* if force the status and link are set */ + if (phydev->force) + return 0; + /* Update the link, but return if there * was an error */ err = genphy_update_link(phydev); |