net: xilinx: emaclite: add minimal ethtool ops
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 8 Apr 2019 09:01:36 +0000 (12:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 16:59:41 +0000 (09:59 -0700)
commit9a80ba067a9c6435a142d0afd6c369091c0ff990
treeae42d5d97f0995359d4d25eb2dd86faba44c8091
parentfd69c399c7d6262086b6b820757c6aeaa71feeba
net: xilinx: emaclite: add minimal ethtool ops

This set adds a minimal set of ethtool hooks to the driver, which provide a
decent amount of link information via ethtool.
With this change, running `ethtool ethX` in user-space provides all the
neatly-formatted information about the link (what was negotiated, what is
advertised, etc).

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c