mbox series

[net-next,v2,0/2] Use PHYlib for reset randomization and adjustable polling

Message ID 20250205091151.2165678-1-o.rempel@pengutronix.de (mailing list archive)
Headers show
Series Use PHYlib for reset randomization and adjustable polling | expand

Message

Oleksij Rempel Feb. 5, 2025, 9:11 a.m. UTC
Hi all,

This patch set tackles a DP83TG720 reset lock issue and improves PHY
polling. Rather than adding a separate polling worker to randomize PHY
resets, I chose to extend the PHYlib framework - which already handles
most of the needed functionality - with adjustable polling. This
approach not only addresses the DP83TG720-specific problem (where
synchronized resets can lock the link) but also lays the groundwork for
optimizing PHY stats polling across all PHY drivers. With generic PHY
stats coming in, we can adjust the polling interval based on hardware
characteristics, such as using longer intervals for PHYs with stable HW
counters or shorter ones for high-speed links prone to counter
overflows.

Patch version changes are tracked in separate patches.

Oleksij Rempel (2):
  net: phy: Add support for driver-specific next update time
  net: phy: dp83tg720: Add randomized polling intervals for unstable
    link detection

 drivers/net/phy/dp83tg720.c | 78 +++++++++++++++++++++++++++++++++++++
 drivers/net/phy/phy.c       | 26 ++++++++++++-
 include/linux/phy.h         | 13 +++++++
 3 files changed, 115 insertions(+), 2 deletions(-)

--
2.39.5