Re: [PATCH v2] net: stmmac: Wait a bit for the reset to take effect

From: Bernd Edlinger
Date: Fri Jan 19 2024 - 02:14:48 EST


On 1/17/24 17:55, Jose Abreu wrote:
> From: Bernd Edlinger <bernd.edlinger@xxxxxxxxxx>
> Date: Wed, Jan 17, 2024 at 16:48:22
>
>> I don't know at all. And actually, I am more concerned that other registers
>> might be unreliable within the first microsecond after reset is de-asserted.
>
> Are you guaranteeing that the documented PoR time is achieved before reading registers?
>

Yes, that is the idea, why I added the udelay directly after releasing the reset,
thus simply delaying the execution of the stmmac_hw_init function, and not directly
where the synopsys_id register is accessed.


Thanks
Bernd.