]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: usb: lan78xx: Extract PHY interrupt acknowledgment to helper
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 5 May 2025 08:43:39 +0000 (10:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 May 2025 11:57:05 +0000 (12:57 +0100)
commitf485849a381f829234143e044663f35330d0b71a
tree8dfd617d4ee4dfef14721675937d7aa05a5a1b79
parent8ba1f33c55d213ee0da1b972b481407cfddeda4a
net: usb: lan78xx: Extract PHY interrupt acknowledgment to helper

Move the PHY interrupt acknowledgment logic from lan78xx_link_reset()
to a new helper function lan78xx_phy_int_ack(). This simplifies the
code and prepares for reusing the acknowledgment logic independently
from the full link reset process, such as when using phylink.

No functional change intended.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Thangaraj Samynathan <thangaraj.s@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c