ath79: ag71xx: update ethtool support
authorPetr Štetiar <ynezz@true.cz>
Fri, 24 May 2019 22:24:35 +0000 (00:24 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 5 Jun 2019 08:12:30 +0000 (10:12 +0200)
commit206af613b2441f15bc469dea223ff6fa4e5aa55e
tree4c44587ba53b3fc689450a1a5439f65cb7076cbf
parenteafe0611d9558a9c8ea74bdc91902f54074ea55b
ath79: ag71xx: update ethtool support

ethtool doesn't work currently as phy_ethtool_ioctl expects user space
pointer, but it's being passed kernel one. Fixing it doesn't make sense
as {s,g}et_settings were deprecated anyway.  So let's rather remove
phy_ethtool_ioctl and use new {s,g}et_link_ksettings instead. While at
it, update nway_reset as well.

Cc: John Crispin <john@phrozen.org>
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=1982
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c