From: Andrew Lunn <andrew@lunn.ch>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, linux@roeck-us.net, Andrew Lunn <andrew@lunn.ch>
Subject: [PATCH 3/3] net: dsa: mv88e6171: Add support for reading switch registers
Date: Sat, 15 Nov 2014 22:24:53 +0100 [thread overview]
Message-ID: <1416086694-15790-4-git-send-email-andrew@lunn.ch> (raw)
In-Reply-To: <1416086694-15790-1-git-send-email-andrew@lunn.ch>
The infrastructure can now report switch registers to ethtool.
Add support for it to the mv88e6171 driver.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
---
drivers/net/dsa/mv88e6171.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c
index ed4c79778823..aa33d16f2e22 100644
--- a/drivers/net/dsa/mv88e6171.c
+++ b/drivers/net/dsa/mv88e6171.c
@@ -423,6 +423,8 @@ struct dsa_switch_driver mv88e6171_switch_driver = {
#ifdef CONFIG_NET_DSA_HWMON
.get_temp = mv88e6xxx_get_temp,
#endif
+ .get_regs_len = mv88e6xxx_get_regs_len,
+ .get_regs = mv88e6xxx_get_regs,
};
MODULE_ALIAS("platform:mv88e6171");
--
2.1.3
next prev parent reply other threads:[~2014-11-15 21:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-15 21:24 [PATCH 0/3] Add temperature reading and registers dump to mv88e6171 Andrew Lunn
2014-11-15 21:24 ` [PATCH 1/3] net: dsa: Centralise code for reading the temperature sensor Andrew Lunn
2014-11-15 21:24 ` [PATCH 2/3] net: dsa: mv88e6171: Add support for reading the temperature Andrew Lunn
2014-11-15 21:24 ` Andrew Lunn [this message]
2014-11-16 20:48 ` [PATCH 0/3] Add temperature reading and registers dump to mv88e6171 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=1416086694-15790-4-git-send-email-andrew@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=linux@roeck-us.net \
--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