Re: [RFC PATCH] net: phy: integrate reset-after-clock quirk into phy_init_hw

From: Michael Nazzareno Trimarchi

Date: Wed Jan 28 2026 - 16:04:30 EST


Hi

On Wed, Jan 28, 2026 at 9:51 PM Andrew Lunn <andrew@xxxxxxx> wrote:
>
> > The issue was with the out-of-band reset coming from the FEC driver
> > which doesn't honor the phy state-machine.
>
> Could you explain this is more details. Is the FEC doing something
> wrong?

The fact that the phy should be reset when the clk is provided to it, is not
connected at all with the fec. I think that fec_main does not register itself
as clock provider, You "should" define the phy to have a clock if this is needed
during the restoration and we should not give any "magic" at controller level.

* Marco * Your commit bedd8d78aba300860cec3f85d6ff549b3b7f2679 is clear
and I have tried to use it but if I remember the problem is the clock
is provided
by the ethernet controller.

Michael


>
> Andrew



--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael@xxxxxxxxxxxxxxxxxxxx
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info@xxxxxxxxxxxxxxxxxxxx
www.amarulasolutions.com