ath79: Fix PHY access over ag71xx driver
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 25 Jul 2024 20:05:11 +0000 (22:05 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Thu, 8 Aug 2024 20:59:35 +0000 (16:59 -0400)
commit10e52348231adf3c1324ecddfc044eb675f663f2
tree0d120757d542cf53f32cdedfc44176a72c68609e
parent4846a256f4c3028babfcb4455cad4392056ba289
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
(cherry picked from commit f86273e742b9f01565018494733d38438e7f0098)
Link: https://github.com/openwrt/openwrt/pull/16023
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c