ath79: Fix PHY access over ag71xx driver
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 25 Jul 2024 20:05:11 +0000 (22:05 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 28 Jul 2024 14:12:51 +0000 (16:12 +0200)
commitf86273e742b9f01565018494733d38438e7f0098
tree958adf268c589bf634d71a91644922076cf8ddb3
parente33ebdd00e5aedacb996fd48987067c77e43f5f4
ath79: Fix PHY access over ag71xx driver

.ndo_do_ioctl is not called any more. For PHY MII ioctl handling, the
kernel calls .ndo_eth_ioctl now.

The SIOCSIFHWADDR and SIOCGIFHWADDR operation are handled in the generic
code in the same way just with more input validation.

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

Reported-by: Cthulhu88 in https://forum.openwrt.org/t/ethernet-leds-control-for-tp-link-tl-wr1043nd-v2-v3/202378
Link: https://github.com/openwrt/openwrt/pull/16005
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c