Re: [PATCH net-next 4/4] net: dsa: Do not clobber PHY link outside of state machine

From: Andrew Lunn
Date: Tue Feb 07 2017 - 08:15:06 EST


> Related is that polling the phy status every second can be bad news for
> system latency.
> Typically it involves bit-bashing an interface with spin-delays to
> meet the slow timings (with extra delays to allow for posted writes).
> An alternative would be to do a very slow bit-bang on each timer tick,
> this would need to be sped up and finished before any other actions.

Or just use PHY interrupts. That completely stops the MDIO polling.

Andrew