Skip to content

Commit 615552c

Browse files
Jijie ShaoPaolo Abeni
authored andcommitted
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 7a5d60d commit 615552c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <linux/if_vlan.h>
66
#include <linux/netdevice.h>
77
#include <linux/pci.h>
8+
#include <linux/phy.h>
89
#include "hbg_common.h"
910
#include "hbg_diagnose.h"
1011
#include "hbg_err.h"
@@ -277,6 +278,7 @@ static const struct net_device_ops hbg_netdev_ops = {
277278
.ndo_tx_timeout = hbg_net_tx_timeout,
278279
.ndo_set_rx_mode = hbg_net_set_rx_mode,
279280
.ndo_get_stats64 = hbg_net_get_stats,
281+
.ndo_eth_ioctl = phy_do_ioctl_running,
280282
};
281283

282284
static void hbg_service_task(struct work_struct *work)

0 commit comments

Comments
 (0)