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 21:56:36 +0000 (23:56 +0200)
commite5233fa70e9f5c3cc51d48f9b4670f2313570489
treecc0be22d5cb5fbeef71f7f1c9acb642bce25a466
parent1478f641bd0234d2af8fee9855624f2ae93833bf
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