summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/qca8k.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-08-01 22:32:35 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-02 05:09:09 +0200
commit193da90e6075fceb48dc22d9cab0cea557fb0713 (patch)
treea3428dd29fee74b052b2e37c946fcfb97bd8621a /drivers/net/dsa/qca8k.c
parentnet: dsa: qca8k: do not cache unneeded EEE fields (diff)
downloadlinux-193da90e6075fceb48dc22d9cab0cea557fb0713.tar.xz
linux-193da90e6075fceb48dc22d9cab0cea557fb0713.zip
net: dsa: qca8k: empty qca8k_get_eee
phy_ethtool_get_eee is already called by the DSA layer, thus remove the duplicated call in the qca8k driver. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.c')
-rw-r--r--drivers/net/dsa/qca8k.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c
index c316c55aabc6..8cd4634c6985 100644
--- a/drivers/net/dsa/qca8k.c
+++ b/drivers/net/dsa/qca8k.c
@@ -695,16 +695,8 @@ static int
qca8k_get_eee(struct dsa_switch *ds, int port,
struct ethtool_eee *e)
{
- struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv;
- struct ethtool_eee *p = &priv->port_sts[port].eee;
- struct net_device *netdev = ds->ports[port].netdev;
- int ret;
-
- ret = phy_ethtool_get_eee(netdev->phydev, p);
- e->eee_active = p->eee_active;
- e->eee_enabled = p->eee_enabled;
-
- return ret;
+ /* Nothing to do on the port's MAC */
+ return 0;
}
static void