From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T7TeB-0001e0-Ma for barebox@lists.infradead.org; Fri, 31 Aug 2012 16:00:40 +0000 From: Wolfram Sang Date: Fri, 31 Aug 2012 18:00:37 +0200 Message-Id: <1346428837-20422-1-git-send-email-w.sang@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] net: miidev: really wait for auto negotiation To: barebox@lists.infradead.org Cc: Wolfram Sang miidev_wait_aneg() polled the wrong bit, so link detection did fail on boards where the PHY had to come out of a powerdown mode. Signed-off-by: Wolfram Sang --- drivers/net/miidev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/miidev.c b/drivers/net/miidev.c index b49944b..75b53e3 100644 --- a/drivers/net/miidev.c +++ b/drivers/net/miidev.c @@ -116,7 +116,7 @@ int miidev_wait_aneg(struct mii_device *mdev) return -ETIMEDOUT; } - } while (!(status & BMSR_LSTATUS)); + } while (!(status & BMSR_ANEGCOMPLETE)); return 0; } -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox