diff options
| author | Hauke Mehrtens | 2024-07-25 20:09:04 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2024-07-28 21:56:36 +0000 |
| commit | c4dc5dbd3313c7a7b8c2a3e79fece998eaf41339 (patch) | |
| tree | 06880cd4f0121d6e97ea89b6567264edb7d2429b | |
| parent | e5233fa70e9f5c3cc51d48f9b4670f2313570489 (diff) | |
| download | openwrt-c4dc5dbd3313c7a7b8c2a3e79fece998eaf41339.tar.gz | |
ramips: eth: Fix PHY access over mtk_eth_soc driver
.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
(cherry picked from commit dbccc9cf9161103448737785617e6ad537c7da9f)
Link: https://github.com/openwrt/openwrt/pull/16023
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c index dab8a173f7..c822d0162a 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c @@ -1501,7 +1501,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, |