phy: Reset init count on phy exit failure
authorMarek Vasut <marek.vasut@mailbox.org>
Sat, 6 Sep 2025 23:00:44 +0000 (01:00 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 16 Sep 2025 22:14:03 +0000 (16:14 -0600)
commitc6a4b44cdcc11431223a9d9db17de0c587d49c72
tree57f03b82ede6255f0a053d0183cc5e40f878d233
parent27fc6a67a4ca0ab565a1135a30b1e132de3bbed8
phy: Reset init count on phy exit failure

In case the PHY exit callback reports failure, reset init_count to 0 anyway,
so the next attempt at PHY initialization might try to reinitialize the PHY
and restore it to normal operation.

Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
drivers/phy/phy-uclass.c