public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers/net/tsec.c - mii_parse_sr does not wait for auto-negotiation completion bug fix
@ 2009-03-24 17:57 Michael Zaidman
  2009-03-24 19:01 ` Peter Tyser
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Zaidman @ 2009-03-24 17:57 UTC (permalink / raw)
  To: u-boot

drivers/net/tsec.c - mii_parse_sr does not wait for auto-negotiation
completion bug fix

In the case when the MIIM_STATUS_LINK is 0 i.e. link is down
and this is the situation immediately after power up,
the code of awaiting for auto-negotiation completion now will be executed.

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
---
 drivers/net/tsec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 399116f..54279ca 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -363,7 +363,7 @@ uint mii_parse_sr(uint mii_reg, struct tsec_private * priv)
         * (ie - we're capable and it's not done)
         */
        mii_reg = read_phy_reg(priv, MIIM_STATUS);
-       if ((mii_reg & MIIM_STATUS_LINK) && (mii_reg & PHY_BMSR_AUTN_ABLE)
+       if (!(mii_reg & MIIM_STATUS_LINK) && (mii_reg & PHY_BMSR_AUTN_ABLE)
            && !(mii_reg & PHY_BMSR_AUTN_COMP)) {
                int i = 0;

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-03-26 22:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 17:57 [U-Boot] [PATCH] drivers/net/tsec.c - mii_parse_sr does not wait for auto-negotiation completion bug fix Michael Zaidman
2009-03-24 19:01 ` Peter Tyser
2009-03-26 15:21   ` Michael Zaidman
2009-03-26 16:26     ` Peter Tyser
2009-03-26 22:48       ` Michael Zaidman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox