]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: airoha: Add get_link ethtool callback
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 13 Oct 2025 14:29:42 +0000 (16:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Oct 2025 02:35:45 +0000 (19:35 -0700)
Set get_link ethtool callback to ethtool_op_get_link routine.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20251013-airoha-ethtool-improvements-v1-2-fdd1c6fc9be1@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c

index 2fe1f39558b80926439cc2f765eb5057464dd76e..6effdda64380bf72ce3c5b6b2f551f560f2ee097 100644 (file)
@@ -2770,6 +2770,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               = ethtool_op_get_link,
 };
 
 static int airoha_metadata_dst_alloc(struct airoha_gdm_port *port)