]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
lan743x: Add support for ethtool link settings
authorBryan Whitehead <Bryan.Whitehead@microchip.com>
Mon, 23 Jul 2018 20:16:27 +0000 (16:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2018 21:09:18 +0000 (14:09 -0700)
Use default link setting functions

Signed-off-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan743x_ethtool.c

index 0e20758b54ded9e0b3740daa1dc5c8eabbe5d29d..5c4582c209af7655a95561a0c02c08b3c964247a 100644 (file)
@@ -5,6 +5,7 @@
 #include "lan743x_main.h"
 #include "lan743x_ethtool.h"
 #include <linux/pci.h>
+#include <linux/phy.h>
 
 static void lan743x_ethtool_get_drvinfo(struct net_device *netdev,
                                        struct ethtool_drvinfo *info)
@@ -18,4 +19,8 @@ static void lan743x_ethtool_get_drvinfo(struct net_device *netdev,
 
 const struct ethtool_ops lan743x_ethtool_ops = {
        .get_drvinfo = lan743x_ethtool_get_drvinfo,
+       .get_link = ethtool_op_get_link,
+
+       .get_link_ksettings = phy_ethtool_get_link_ksettings,
+       .set_link_ksettings = phy_ethtool_set_link_ksettings,
 };