]> www.infradead.org Git - users/hch/misc.git/commit
net: phy: dp83tg720: Add randomized polling intervals for link detection
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 10 Feb 2025 08:23:58 +0000 (09:23 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Feb 2025 18:49:03 +0000 (10:49 -0800)
commite252af1a67fe66ec901e33035210b231d9d211b7
tree35dbb0a05b02c9d6e3a461d2d6968548ff2a093f
parent8bf47e4d7b87cbd6a69541643d3fa4003c99d95f
net: phy: dp83tg720: Add randomized polling intervals for link detection

Address the limitations of the DP83TG720 PHY, which cannot reliably
detect or report a stable link state. To handle this, the PHY must be
periodically reset when the link is down. However, synchronized reset
intervals between the PHY and its link partner can result in a deadlock,
preventing the link from re-establishing.

This change introduces a randomized polling interval when the link is
down to desynchronize resets between link partners.

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