summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski2026-01-10 17:05:38 +0000
committerHauke Mehrtens2026-02-07 16:02:27 +0000
commit1f1d0ca74f854ab557f77d91771d6a3a307aaee8 (patch)
tree0162c31dc2e0ef1933b0026b336a30d86482669b
parent3e87d3b9cc20771f0f7902b3ed58ad9b8845808e (diff)
downloadopenwrt-1f1d0ca74f854ab557f77d91771d6a3a307aaee8.tar.gz
airoha: show link rate and duplex
Implement the .get_link_ksettings to get the rate, duplex, and auto-negotiation status. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Link: https://github.com/openwrt/openwrt/pull/21530 Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 4953db3aeff052223e4588fe892f94a32e917a05) Link: https://github.com/openwrt/openwrt/pull/21838 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/airoha/patches-6.12/611-v7.0-net-airoha-implement-get_link_ksettings.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/airoha/patches-6.12/611-v7.0-net-airoha-implement-get_link_ksettings.patch b/target/linux/airoha/patches-6.12/611-v7.0-net-airoha-implement-get_link_ksettings.patch
new file mode 100644
index 0000000000..0691b2402a
--- /dev/null
+++ b/target/linux/airoha/patches-6.12/611-v7.0-net-airoha-implement-get_link_ksettings.patch
@@ -0,0 +1,26 @@
+From 50e194b6da721e4fa1fc6ebcf5969803c214929a Mon Sep 17 00:00:00 2001
+From: Aleksander Jan Bajkowski <olek2@wp.pl>
+Date: Sat, 10 Jan 2026 18:02:05 +0100
+Subject: [PATCH] net: airoha: implement get_link_ksettings
+
+Implement the .get_link_ksettings to get the rate, duplex, and
+auto-negotiation status.
+
+Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
+Tested-by: Lorenzo Bianconi <lorenzo@kernel.org>
+Link: https://patch.msgid.link/20260110170212.570793-1-olek2@wp.pl
+Signed-off-by: Paolo Abeni <pabeni@redhat.com>
+---
+ drivers/net/ethernet/airoha/airoha_eth.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/net/ethernet/airoha/airoha_eth.c
++++ b/drivers/net/ethernet/airoha/airoha_eth.c
+@@ -2844,6 +2844,7 @@ static const struct ethtool_ops airoha_e
+ .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,
+ };
+