net: phy: Add support for driver-specific next update time
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 10 Feb 2025 08:23:57 +0000 (09:23 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Feb 2025 18:49:03 +0000 (10:49 -0800)
commit8bf47e4d7b87cbd6a69541643d3fa4003c99d95f
tree9c5012da187b14c4c83257bcc9757f8d22389a1a
parent12739192b1996a6f8814ea3bef5f45110bc5a74c
net: phy: Add support for driver-specific next update time

Introduce the `phy_get_next_update_time` function to allow PHY drivers
to dynamically determine the time (in jiffies) until the next state
update event. This enables more flexible and adaptive polling intervals
based on the link state or other conditions.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250210082358.200751-2-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy.c
include/linux/phy.h