diff options
author | 2025-02-28 19:54:11 +0800 | |
---|---|---|
committer | 2025-03-04 13:45:33 +0100 | |
commit | 615552c601ed3f7c8b88cdb9745e2ace769c264f (patch) | |
tree | af2047582fd59d7d15d5fcef928d32cd9af64ab9 | |
parent | net: hibmcge: Add support for BMC diagnose feature (diff) | |
download | wireguard-linux-615552c601ed3f7c8b88cdb9745e2ace769c264f.tar.xz wireguard-linux-615552c601ed3f7c8b88cdb9745e2ace769c264f.zip |
net: hibmcge: Add support for ioctl
This patch implements the .ndo_eth_ioctl() to
read and write the PHY register.
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r-- | drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c b/drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c index c6a955e640fc..2ac5454338e4 100644 --- a/drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c +++ b/drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c @@ -5,6 +5,7 @@ #include <linux/if_vlan.h> #include <linux/netdevice.h> #include <linux/pci.h> +#include <linux/phy.h> #include "hbg_common.h" #include "hbg_diagnose.h" #include "hbg_err.h" @@ -277,6 +278,7 @@ static const struct net_device_ops hbg_netdev_ops = { .ndo_tx_timeout = hbg_net_tx_timeout, .ndo_set_rx_mode = hbg_net_set_rx_mode, .ndo_get_stats64 = hbg_net_get_stats, + .ndo_eth_ioctl = phy_do_ioctl_running, }; static void hbg_service_task(struct work_struct *work) |