net: dsa: qca8k: empty qca8k_get_eee
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 1 Aug 2017 20:32:35 +0000 (16:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2017 03:09:09 +0000 (20:09 -0700)
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>
drivers/net/dsa/qca8k.c

index c316c55aabc6abe48c15e0eb1db0e36e7bf1c5a5..8cd4634c69853f09499ff0fb1964dccef3ad5e34 100644 (file)
@@ -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