[PATCH v3] arm64: dts: freescale: imx93-phycore-som: Delay the phy reset by a gpio

Christoph Stoidner C.Stoidner at phytec.de
Fri May 30 06:40:38 PDT 2025



On Mi, 2025-05-28 at 21:29 +0200, Andrew Lunn wrote:
> > Yes, that's what I measured. For analysis, I added some
> > debug outputs
> > to
> > the phy reset and the 1st phy register access. And as I can see,
> > the
> > phy register access happens when userland sets up the network:
> 
> Please repeat the measurements with NFS root.
> 
> You will find that the kernel brings the interface up right have
> register_netdev() is called, and starts transmitting. It can happen
> before register_netdev() even returns.

Thanks for that hint. As you said, with nfs root the register access
happens much earlier. I measured:

       [   1.713185] DEB-PHY: mdio reset exeucted
       ...
       ...
       ...
       [   2.672892] DEB-PHY: register access

However, the delta time of 0.959707s (9597ms) still meets the T2
("prior to MDC preamble for register access") that is defined in the
PHY's datasheet with 2ms.

Seems to be fine from my point of view.

Regards,
Christoph

> 
>  Andrew


More information about the linux-arm-kernel mailing list