Re: [PATCH net v3 1/2] net: ethernet: bgmac: init sequence bug

From: David Miller
Date: Thu Feb 09 2017 - 17:11:33 EST


From: Jon Mason <jon.mason@xxxxxxxxxxxx>
Date: Wed, 8 Feb 2017 16:12:56 -0500

> The code now checks to see if the adapter needs to be brought out of
> reset (where as before it was doing an IDM write to bring it out of
> reset regardless of whether it was in reset or not). Also, removed
> unnecessary usleeps (as there is already a read present to flush the
> IDM writes).

That's not what the delays are there for, I don't think you can
safely remove them.

It's for waiting for the reset to complete after the write to
the register has propagated by the read back.

Please retain the delays.

Thanks.