Skip to content

Commit

Permalink
net: hibmcge: Add support for ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jijie Shao authored and Paolo Abeni committed Mar 4, 2025
1 parent 7a5d60d commit 615552c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 615552c

Please sign in to comment.