From: Peter Tyser <ptyser@xes-inc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers/net/tsec.c - mii_parse_sr does not wait for auto-negotiation completion bug fix
Date: Tue, 24 Mar 2009 14:01:22 -0500 [thread overview]
Message-ID: <1237921282.9550.12.camel@localhost.localdomain> (raw)
In-Reply-To: <660c0f820903241057h4025718fx738631a3a9d31885@mail.gmail.com>
Hi Michael,
On Tue, 2009-03-24 at 19:57 +0200, Michael Zaidman wrote:
> 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;
This issue has been brought up once before:
http://lists.denx.de/pipermail/u-boot/2009-February/046829.html
There was some concern about adding delay to the boot process in the
case that the primary ethernet port(s) did not achieve link.
There had also been some discussion about performing PHY
auto-negotiation in parallel, but this seems like a much larger can of
worms.
I had proposed this:
http://lists.denx.de/pipermail/u-boot/2009-February/048489.html
Andy/Ben, any feedback on getting a patch such as Michael's or mine
merged in?
Thanks,
Peter
next prev parent reply other threads:[~2009-03-24 19:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2009-03-26 15:21 ` Michael Zaidman
2009-03-26 16:26 ` Peter Tyser
2009-03-26 22:48 ` Michael Zaidman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1237921282.9550.12.camel@localhost.localdomain \
--to=ptyser@xes-inc.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox