From: Anton Vorontsov <avorontsov@mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] ??: [PATCH v2] include/linux/mii.h: update for supporting GE
Date: Fri, 21 Jan 2011 12:52:21 +0300 [thread overview]
Message-ID: <20110121095221.GA14148@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <20110121082312.5DC81D0B12E@gemini.denx.de>
On Fri, Jan 21, 2011 at 09:23:12AM +0100, Wolfgang Denk wrote:
[...]
> > In uec_phy:
> > drivers/qe/uec_phy.h:34:#define LPA_1000FULL 0x0400
> > drivers/qe/uec_phy.h:35:#define LPA_1000HALF 0x0200
> >
> > In Linux:
> > include/linux/mii.h:133:#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */
> > include/linux/mii.h:134:#define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */
> >
> > Do you know if this is a wrong defintion on uec_phy ?
> > I'm afraid the fix will lead some mis-behavior for boards has uec_phy.
>
> These definitions were added by commit 91cdaa3a:
>
> commit 91cdaa3a9d7562b869d96774e9c9ddf142c0848d
> Author: Anton Vorontsov <avorontsov@ru.mvista.com>
> Date: Mon Mar 24 20:46:24 2008 +0300
>
> uec: add support for gbit mii status readings
>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
>
>
> Anton, can you please comment?
I think that was just a shift-by-one mistake, Linux code is
correct.
It seems that the only way to trigger this is to force half-duplex
on a gigabit link (and u-boot will think that it's a full duplex
link).
I believe it's safe to fix the wrong definition.
Thanks,
--
Anton Vorontsov
Email: cbouatmailru at gmail.com
next prev parent reply other threads:[~2011-01-21 9:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-21 7:31 [U-Boot] ??: [PATCH v2] include/linux/mii.h: update for supporting GE macpaul at andestech.com
2011-01-21 8:05 ` Kumar Gala
2011-01-21 8:27 ` Wolfgang Denk
2011-01-21 9:17 ` Kumar Gala
2011-01-21 8:23 ` Wolfgang Denk
2011-01-21 9:52 ` Anton Vorontsov [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-01-21 7:26 macpaul at andestech.com
2011-01-21 7:17 macpaul at andestech.com
2010-12-03 5:52 [U-Boot] " Macpaul Lin
2010-12-08 23:05 ` Wolfgang Denk
2011-01-21 7:09 ` Wolfgang Denk
2011-01-21 8:04 ` Kumar Gala
2011-01-21 8:25 ` Wolfgang Denk
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=20110121095221.GA14148@oksana.dev.rtsoft.ru \
--to=avorontsov@mvista.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