]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: airoha: implement get_link_ksettings
authorAleksander Jan Bajkowski <olek2@wp.pl>
Sat, 10 Jan 2026 17:02:05 +0000 (18:02 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 Jan 2026 15:07:19 +0000 (16:07 +0100)
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

index 724904d08febdd88c1145da7531f012755412ec4..62bcbbbe2a95651ac1f7f30c3752ccbc7bc5662f 100644 (file)
@@ -2805,6 +2805,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,
 };