From: Francois Romieu <romieu@fr.zoreil.com>
To: Andrew Paprocki <andrew@ishiboo.com>
Cc: netdev@vger.kernel.org, Jeff Garzik <jeff@garzik.org>
Subject: Re: [PATCH] ethtool: Add register dump support for all r8169 driver cards
Date: Wed, 26 Mar 2008 22:44:32 +0100 [thread overview]
Message-ID: <20080326214432.GA9356@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <76366b180803260519t7c446210n62d4c91209c5e971@mail.gmail.com>
Andrew Paprocki <andrew@ishiboo.com> :
[...]
> diff --git a/realtek.c b/realtek.c
> index c56b3f5..7e750da 100644
> --- a/realtek.c
> +++ b/realtek.c
[...]
> @@ -157,9 +170,7 @@ realtek_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
> data[0x2C >> 2]);
> }
>
> - if (board_type == RTL8169 ||
> - board_type == RTL8169s ||
> - board_type == RTL8110) {
> + if (board_type >= RTL8169) {
> fprintf(stdout,
> "0x30: Flash memory read/write 0x%08x\n",
> data[0x30 >> 2]);
Please revert: this register is reserved in the 8168.
[...]
> @@ -272,9 +279,7 @@ realtek_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
> "0x5C: Multiple Interrupt Select 0x%04x\n",
> data[0x5c >> 2] & 0xffff);
>
> - if (board_type == RTL8169 ||
> - board_type == RTL8169s ||
> - board_type == RTL8110) {
> + if (board_type >= RTL8169) {
> fprintf(stdout,
> "0x60: PHY access 0x%08x\n"
> "0x64: TBI control and status 0x%08x\n",
PHY access and PHY status are ok for the 8168. TBI and PM registers are not.
[...]
> @@ -512,6 +514,16 @@ realtek_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
> fprintf(stdout,
> "0xFC: External MII register 0x%08x\n",
> data[0xFC >> 2]);
> + } else if (board_type >= RTL8169) {
> + fprintf(stdout,
> + "0xF0: Func Event 0x%08x\n"
> + "0xF4: Func Event Mask 0x%08x\n"
> + "0xF8: Func Preset State 0x%08x\n"
> + "0xFC: Func Force Event 0x%08x\n",
> + data[0xF0 >> 2],
> + data[0xF4 >> 2],
> + data[0xF8 >> 2],
> + data[0xFC >> 2]);
The 8168 should not be included here.
--
Ueimor
next prev parent reply other threads:[~2008-03-26 22:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 12:19 [PATCH] ethtool: Add register dump support for all r8169 driver cards Andrew Paprocki
2008-03-26 21:44 ` Francois Romieu [this message]
2008-03-26 22:11 ` Andrew Paprocki
2008-03-26 22:11 ` Francois Romieu
2008-03-27 0:11 ` Andrew Paprocki
-- strict thread matches above, loose matches on Subject: below --
2008-03-27 0:36 Andrew Paprocki
2008-09-14 2:12 ` Jeff Garzik
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=20080326214432.GA9356@electric-eye.fr.zoreil.com \
--to=romieu@fr.zoreil.com \
--cc=andrew@ishiboo.com \
--cc=jeff@garzik.org \
--cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).