Skip to content

Commit 34c21e9

Browse files
ParthibanI17164kuba-moo
authored andcommitted
microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support
Introduce support for standard MII ioctl operations in the LAN865x Ethernet driver by implementing the .ndo_eth_ioctl callback. This allows PHY-related ioctl commands to be handled via phy_do_ioctl_running() and enables support for ethtool and other user-space tools that rely on ioctl interface to perform PHY register access using commands like SIOCGMIIREG and SIOCSMIIREG. This feature enables improved diagnostics and PHY configuration capabilities from userspace. Signed-off-by: Parthiban Veerasooran <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2a63607 commit 34c21e9

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/microchip/lan865x

1 file changed

+1
-0
lines changed

drivers/net/ethernet/microchip/lan865x/lan865x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ static const struct net_device_ops lan865x_netdev_ops = {
326326
.ndo_start_xmit = lan865x_send_packet,
327327
.ndo_set_rx_mode = lan865x_set_multicast_list,
328328
.ndo_set_mac_address = lan865x_set_mac_address,
329+
.ndo_eth_ioctl = phy_do_ioctl_running,
329330
};
330331

331332
static int lan865x_probe(struct spi_device *spi)

0 commit comments

Comments
 (0)