From: Vince Bridgers <vbridgers2013@gmail.com>
To: netdev@vger.kernel.org, davem@davemloft.net
Cc: vbridgers2013@gmail.com, Vince Bridgers <vbridger@altera.com>
Subject: [PATCH net-next 4/4] Altera TSE: Change driver name used by Ethtool
Date: Thu, 24 Apr 2014 16:58:11 -0500 [thread overview]
Message-ID: <1398376691-15265-5-git-send-email-vbridgers2013@gmail.com> (raw)
In-Reply-To: <1398376691-15265-1-git-send-email-vbridgers2013@gmail.com>
From: Vince Bridgers <vbridger@altera.com>
This patch changes the name used by Ethtool to something more
conventional in preparation for TSE Ethtool register dump
support to be added in the near future.
Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
---
drivers/net/ethernet/altera/altera_tse_ethtool.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/altera/altera_tse_ethtool.c b/drivers/net/ethernet/altera/altera_tse_ethtool.c
index 319ca74..76133ca 100644
--- a/drivers/net/ethernet/altera/altera_tse_ethtool.c
+++ b/drivers/net/ethernet/altera/altera_tse_ethtool.c
@@ -77,7 +77,7 @@ static void tse_get_drvinfo(struct net_device *dev,
struct altera_tse_private *priv = netdev_priv(dev);
u32 rev = ioread32(&priv->mac_dev->megacore_revision);
- strcpy(info->driver, "Altera TSE MAC IP Driver");
+ strcpy(info->driver, "altera_tse");
strcpy(info->version, "v8.0");
snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "v%d.%d",
rev & 0xFFFF, (rev & 0xFFFF0000) >> 16);
@@ -185,6 +185,12 @@ static void tse_get_regs(struct net_device *dev, struct ethtool_regs *regs,
* how to do any special formatting of this data.
* This version number will need to change if and
* when this register table is changed.
+ *
+ * version[31:0] = 1: Dump the first 128 TSE Registers
+ * Upper bits are all 0 by default
+ *
+ * Upper 16-bits will indicate feature presence for
+ * Ethtool register decoding in future version.
*/
regs->version = 1;
--
1.7.9.5
next prev parent reply other threads:[~2014-04-24 22:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 21:58 [PATCH net-next 0/4] Altera Triple Speed Ethernet (TSE) Driver Vince Bridgers
2014-04-24 21:58 ` [PATCH net-next 1/4] Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA Vince Bridgers
2014-04-24 21:58 ` [PATCH net-next 2/4] Altera TSE: Set the Pause Quanta value to the IEEE default value Vince Bridgers
2014-04-24 21:58 ` [PATCH net-next 3/4] Altera TSE: Fix Panic in probe routine when phy probe fails Vince Bridgers
2014-04-24 21:58 ` Vince Bridgers [this message]
2014-04-26 16:27 ` [PATCH net-next 0/4] Altera Triple Speed Ethernet (TSE) Driver David Miller
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=1398376691-15265-5-git-send-email-vbridgers2013@gmail.com \
--to=vbridgers2013@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=vbridger@altera.com \
/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).