Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: usb: ax88172x: Utilize phy_ethtool_nway_reset

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
eea16da8 e3979ce9

+1 -9
+1 -9
drivers/net/usb/ax88172a.c
··· 149 149 .ndo_set_rx_mode = asix_set_multicast, 150 150 }; 151 151 152 - static int ax88172a_nway_reset(struct net_device *net) 153 - { 154 - if (!net->phydev) 155 - return -ENODEV; 156 - 157 - return phy_start_aneg(net->phydev); 158 - } 159 - 160 152 static const struct ethtool_ops ax88172a_ethtool_ops = { 161 153 .get_drvinfo = asix_get_drvinfo, 162 154 .get_link = usbnet_get_link, ··· 159 167 .get_eeprom_len = asix_get_eeprom_len, 160 168 .get_eeprom = asix_get_eeprom, 161 169 .set_eeprom = asix_set_eeprom, 162 - .nway_reset = ax88172a_nway_reset, 170 + .nway_reset = phy_ethtool_nway_reset, 163 171 .get_link_ksettings = phy_ethtool_get_link_ksettings, 164 172 .set_link_ksettings = phy_ethtool_set_link_ksettings, 165 173 };