RE: [PATCH] net: stmmac: Read user ID muliple times if needed.

From: Hans Andersson
Date: Wed Oct 02 2019 - 04:02:07 EST


We assert / de-assert the reset line, but the CPU is too fast and the IP is still
in reset when we later try to read user ID / Synopsys ID. Another option would
be to add a delay after we reset.

-----Original Message-----
From: Jose Abreu <Jose.Abreu@xxxxxxxxxxxx>
Sent: den 2 oktober 2019 09:52
To: Hans Andersson <Hans.Andersson@xxxxxxxxxxxxxx>; mcoquelin.stm32@xxxxxxxxx
Cc: peppe.cavallaro@xxxxxx; alexandre.torgue@xxxxxx; davem@xxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-stm32@xxxxxxxxxxxxxxxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Hans Andersson <Hans.Andersson@xxxxxxxxxxxxxx>
Subject: RE: [PATCH] net: stmmac: Read user ID muliple times if needed.

From: Hans Andersson <haan@xxxxxxxxxxxxxx>
Date: Oct/02/2019, 08:07:21 (UTC+00:00)

> When we read user ID / Synopsys ID we might still be in reset, so read
> muliple times if needed.

We shouldn't even try to read it if IP is in reset ...

---
Thanks,
Jose Miguel Abreu