net: ethernet: marvell: pxa168_eth: Implement ethtool::nway_reset
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 15 Nov 2016 19:19:49 +0000 (11:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 18:44:01 +0000 (13:44 -0500)
Implement ethtool::nway_reset using phy_ethtool_nway_reset. We are
already using dev->phydev all over the place so this comes for free.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c

index b78a838f306c86b21c8c8a29a4c6dbb12fe5aa6c..3af2814ada235c124fd49f1c72f7d0a5c4afbe99 100644 (file)
@@ -1393,6 +1393,7 @@ static void pxa168_get_drvinfo(struct net_device *dev,
 
 static const struct ethtool_ops pxa168_ethtool_ops = {
        .get_drvinfo    = pxa168_get_drvinfo,
+       .nway_reset     = phy_ethtool_nway_reset,
        .get_link       = ethtool_op_get_link,
        .get_ts_info    = ethtool_op_get_ts_info,
        .get_link_ksettings = pxa168_get_link_ksettings,