* [PATCH net-next v2] microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support
@ 2025-08-28 11:45 Parthiban Veerasooran
2025-08-28 12:48 ` Andrew Lunn
2025-08-30 2:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Parthiban Veerasooran @ 2025-08-28 11:45 UTC (permalink / raw)
To: andrew+netdev, davem, edumazet, kuba, pabeni
Cc: netdev, linux-kernel, Parthiban Veerasooran
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 <parthiban.veerasooran@microchip.com>
---
v2:
- Replaced custom lan865x_eth_ioctl() with direct use of
phy_do_ioctl_running() to avoid code duplication.
- Updated commit message to reflect the new change.
---
drivers/net/ethernet/microchip/lan865x/lan865x.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/microchip/lan865x/lan865x.c b/drivers/net/ethernet/microchip/lan865x/lan865x.c
index 84c41f193561..f7cb685b1562 100644
--- a/drivers/net/ethernet/microchip/lan865x/lan865x.c
+++ b/drivers/net/ethernet/microchip/lan865x/lan865x.c
@@ -326,6 +326,7 @@ static const struct net_device_ops lan865x_netdev_ops = {
.ndo_start_xmit = lan865x_send_packet,
.ndo_set_rx_mode = lan865x_set_multicast_list,
.ndo_set_mac_address = lan865x_set_mac_address,
+ .ndo_eth_ioctl = phy_do_ioctl_running,
};
static int lan865x_probe(struct spi_device *spi)
base-commit: d4854be4ec21dad23907c0fbc3389c3a394ebf67
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2] microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support
2025-08-28 11:45 [PATCH net-next v2] microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support Parthiban Veerasooran
@ 2025-08-28 12:48 ` Andrew Lunn
2025-08-30 2:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2025-08-28 12:48 UTC (permalink / raw)
To: Parthiban Veerasooran
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel
On Thu, Aug 28, 2025 at 05:15:49PM +0530, Parthiban Veerasooran wrote:
> 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 <parthiban.veerasooran@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next v2] microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support
2025-08-28 11:45 [PATCH net-next v2] microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support Parthiban Veerasooran
2025-08-28 12:48 ` Andrew Lunn
@ 2025-08-30 2:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-08-30 2:20 UTC (permalink / raw)
To: Parthiban Veerasooran
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel, parthiban.veerasooran
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 28 Aug 2025 17:15:49 +0530 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- [net-next,v2] microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support
https://git.kernel.org/netdev/net-next/c/34c21e91192a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-30 2:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 11:45 [PATCH net-next v2] microchip: lan865x: add ndo_eth_ioctl handler to enable PHY ioctl support Parthiban Veerasooran
2025-08-28 12:48 ` Andrew Lunn
2025-08-30 2:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).