From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox <barebox@lists.infradead.org>
Subject: Re: [RFC v2] add 'miitool' command to view media-independent interface status
Date: Sun, 14 Oct 2012 22:43:40 +0200 [thread overview]
Message-ID: <20121014204340.GS13639@game.jcrosoft.org> (raw)
In-Reply-To: <CAA4bVAEgjSdtYtbZxVxg2vQgGTSUdd7m7c7SJPSN-FRij0TwVw@mail.gmail.com>
On 21:12 Sun 14 Oct , Antony Pavlov wrote:
> On 14 October 2012 18:11, Jean-Christophe PLAGNIOL-VILLARD>
> <plagnioj@jcrosoft.com> wrote:
> >> On 18:09 Wed 10 Oct , Antony Pavlov wrote:
> >> This command is based on "mii-diag" and "mii-tool" programs.
> >>
> >> TODO:
> >> * add GbE support (see http://ftp.debian.org/debian/pool/main/n/net-tools/net-tools_1.60-24.2.diff.gz);
> >> * add routines to manipulate media-independent interface state.
> >>
> >> EXAMPLES:
> >>
> >> barebox:/ miitool /dev/phy0
> >> negotiated 100baseTx-FD, link ok
> >>
> >> barebox:/ miitool -v /dev/phy0
> >> negotiated 100baseTx-FD, link ok
> >> product info: Level One LXT971A rev 2
> >> basic mode: autonegotiation enabled
> >> basic status: autonegotiation complete, link ok
> >> capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
> >> advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
> >> link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
> >>
> >> barebox:/ miitool -vv /dev/phy0
> >> negotiated 100baseTx-FD, link ok
> >> registers for MII PHY:
> >> 3100 782d 0013 78e2 01e1 45e1 0007 2001
> >> 0000 ffff ffff ffff ffff ffff ffff ffff
> >> 0084 4780 0000 0000 0422 0000 0000 0000
> >> 0000 0000 0080 0000 ffff 0000 0000 3660
> >> product info: Level One LXT971A rev 2
> >> basic mode: autonegotiation enabled
> >> basic status: autonegotiation complete, link ok
> >> capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
> >> advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
> >> link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
> >>
> >> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> >> ---
> >> commands/Kconfig | 11 +++
> >> commands/Makefile | 1 +
> >> commands/miitool.c | 268 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> >> 3 files changed, 280 insertions(+)
> >> create mode 100644 commands/miitool.c
> >>
> >> diff --git a/commands/Kconfig b/commands/Kconfig
> >> index e934f29..c8cdd54 100644
> >> --- a/commands/Kconfig
> >> +++ b/commands/Kconfig
> >> @@ -620,6 +620,17 @@ config CMD_USB
> >> help
> >> The usb command allows to rescan for USB devices.
> >>
> >> +config CMD_MIITOOL
> >> + bool
> >> + prompt "miitool command"
> >> + depends on NET
> > phylib
>
> It seems that miitool does not depends on PHYLIB because it uses
> abstract file access for reading thranceiver's registers. Moreover it
> does not really depends on NET.
> On the other hand the situation can be changed in the future.
the issue is that you expect a phy which as phylib only
Best Regards,
J.
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2012-10-14 20:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-10 14:09 Antony Pavlov
2012-10-13 12:13 ` Sascha Hauer
2012-10-14 5:25 ` Antony Pavlov
2012-10-14 14:11 ` Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <CAA4bVAFUcvzeYaoFc+r6OfA4N+AQ5Lvx_jyMb-1TpmxAz6Xivg@mail.gmail.com>
2012-10-14 17:12 ` Antony Pavlov
2012-10-14 20:43 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
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=20121014204340.GS13639@game.jcrosoft.org \
--to=plagnioj@jcrosoft.com \
--cc=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/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