summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/dsa/mv88e6171.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c
index 54ebfed1b938..e1700cd8badc 100644
--- a/drivers/net/dsa/mv88e6171.c
+++ b/drivers/net/dsa/mv88e6171.c
@@ -390,6 +390,28 @@ static int mv88e6171_get_sset_count(struct dsa_switch *ds)
390 return ARRAY_SIZE(mv88e6171_hw_stats); 390 return ARRAY_SIZE(mv88e6171_hw_stats);
391} 391}
392 392
393static int mv88e6171_get_eee(struct dsa_switch *ds, int port,
394 struct ethtool_eee *e)
395{
396 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
397
398 if (ps->id == ID_6172)
399 return mv88e6xxx_get_eee(ds, port, e);
400
401 return -EOPNOTSUPP;
402}
403
404static int mv88e6171_set_eee(struct dsa_switch *ds, int port,
405 struct phy_device *phydev, struct ethtool_eee *e)
406{
407 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds);
408
409 if (ps->id == ID_6172)
410 return mv88e6xxx_set_eee(ds, port, phydev, e);
411
412 return -EOPNOTSUPP;
413}
414
393struct dsa_switch_driver mv88e6171_switch_driver = { 415struct dsa_switch_driver mv88e6171_switch_driver = {
394 .tag_protocol = DSA_TAG_PROTO_EDSA, 416 .tag_protocol = DSA_TAG_PROTO_EDSA,
395 .priv_size = sizeof(struct mv88e6xxx_priv_state), 417 .priv_size = sizeof(struct mv88e6xxx_priv_state),
@@ -402,6 +424,8 @@ struct dsa_switch_driver mv88e6171_switch_driver = {
402 .get_strings = mv88e6171_get_strings, 424 .get_strings = mv88e6171_get_strings,
403 .get_ethtool_stats = mv88e6171_get_ethtool_stats, 425 .get_ethtool_stats = mv88e6171_get_ethtool_stats,
404 .get_sset_count = mv88e6171_get_sset_count, 426 .get_sset_count = mv88e6171_get_sset_count,
427 .set_eee = mv88e6171_set_eee,
428 .get_eee = mv88e6171_get_eee,
405#ifdef CONFIG_NET_DSA_HWMON 429#ifdef CONFIG_NET_DSA_HWMON
406 .get_temp = mv88e6xxx_get_temp, 430 .get_temp = mv88e6xxx_get_temp,
407#endif 431#endif