ramips: eth: Fix PHY access over mtk_eth_soc driver
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 25 Jul 2024 20:09:04 +0000 (22:09 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 28 Jul 2024 14:12:51 +0000 (16:12 +0200)
.ndo_do_ioctl is not called any more. For PHY MII ioctl handling, the
kernel calls .ndo_eth_ioctl now.

See upstream Linux kernel commit:
https://git.kernel.org/linus/a76053707dbf0dc020a73b4d90cd952409ef3691

Link: https://github.com/openwrt/openwrt/pull/16005
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c

index c8afa4e3bb8f9f3c1bcccdf8b8fc48ec32d54d84..e794f8d5cbc44f09a86bade04a992bb8fc4d9998 100644 (file)
@@ -1480,7 +1480,7 @@ static const struct net_device_ops fe_netdev_ops = {
        .ndo_start_xmit         = fe_start_xmit,
        .ndo_set_mac_address    = fe_set_mac_address,
        .ndo_validate_addr      = eth_validate_addr,
-       .ndo_do_ioctl           = fe_do_ioctl,
+       .ndo_eth_ioctl          = fe_do_ioctl,
        .ndo_change_mtu         = fe_change_mtu,
        .ndo_tx_timeout         = fe_tx_timeout,
        .ndo_get_stats64        = fe_get_stats64,