Skip to contentSkip to conversation

net: airoha: implement get_link_ksettings

PATCH Applied Aleksander Jan Bajkowski 3 participants 3 messages Jan 10 – Jan 13

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: airoha: implement get_link_ksettings

Implement the .get_link_ksettings to get the rate, duplex, and auto-negotiation status.

---
 drivers/net/ethernet/airoha/airoha_eth.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/airoha/airoha_eth.c +1 -0
index 315d97036ac1..00cae2833f09 100644
@@ -2803,6 +2803,7 @@ static const struct ethtool_ops airoha_ethtool_ops = {
 	.get_drvinfo		= airoha_ethtool_get_drvinfo,
 	.get_eth_mac_stats      = airoha_ethtool_get_mac_stats,
 	.get_rmon_stats		= airoha_ethtool_get_rmon_stats,
+	.get_link_ksettings	= phy_ethtool_get_link_ksettings,
 	.get_link		= ethtool_op_get_link,
 };
 
Signature · 1 line
2.47.3
maintainer Tested-by on v1 1/1
#1 lore raw
Quoted 13 lines

Implement the .get_link_ksettings to get the rate, duplex, and auto-negotiation status.

---
 drivers/net/ethernet/airoha/airoha_eth.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/airoha/airoha_eth.c +0 -0
index 315d97036ac1..00cae2833f09 100644

drivers/net/ethernet/airoha/airoha_eth.c static const struct ethtool_ops airoha_ethtool_ops = { · line 2808

Quoted 6 lines
drivers/net/ethernet/airoha/airoha_eth.c +1 -0
@@ -2803,6 +2803,7 @@ static const struct ethtool_ops airoha_ethtool_ops = {
 	.get_drvinfo		= airoha_ethtool_get_drvinfo,
 	.get_eth_mac_stats      = airoha_ethtool_get_mac_stats,
 	.get_rmon_stats		= airoha_ethtool_get_rmon_stats,
+	.get_link_ksettings	= phy_ethtool_get_link_ksettings,
 	.get_link		= ethtool_op_get_link,
 };

Regards,
Lorenzo

Quoted 4 lines
Signature · 2 lines
-- 
2.47.3
#2 lore raw
In reply to Aleksander Jan Bajkowski
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 7 lines · On Sat, 10 Jan 2026 18:02:05 +0100 you wrote:

Implement the .get_link_ksettings to get the rate, duplex, and auto-negotiation status.

---
 drivers/net/ethernet/airoha/airoha_eth.c | 1 +
 1 file changed, 1 insertion(+)

Here is the summary with links:
- net: airoha: implement get_link_ksettings

    https://git.kernel.org/netdev/net-next/c/50e194b6da72

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html