]> git.ipfire.org Git - thirdparty/linux.git/commit
net: usb: lan78xx: Use ethtool_op_get_link to reflect current link status
authorOleksij Rempel <o.rempel@pengutronix.de>
Wed, 18 Jun 2025 12:25:59 +0000 (14:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 22:37:06 +0000 (15:37 -0700)
commit69909c56504bab938b77ccac279d242911a3c829
treef9609dd569577d082f5023bf45fe98371388da9e
parent2c7fad8a9c66d890b1b3ff88075745b72e9d63e6
net: usb: lan78xx: Use ethtool_op_get_link to reflect current link status

Replace the custom lan78xx_get_link implementation with the standard
ethtool_op_get_link helper, which uses netif_carrier_ok to reflect
the current link status accurately.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20250618122602.3156678-4-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/lan78xx.c