[openwrt/openwrt] ramips: eth: Fix PHY access over mtk_eth_soc driver
LEDE Commits
lede-commits at lists.infradead.org
Sun Jul 28 07:14:49 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/dbccc9cf9161103448737785617e6ad537c7da9f
commit dbccc9cf9161103448737785617e6ad537c7da9f
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Thu Jul 25 22:09:04 2024 +0200
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
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 c8afa4e3bb..e794f8d5cb 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
@@ -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,
More information about the lede-commits
mailing list