]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc-miim: use more reasonable delays
authorAntoine Tenart <antoine.tenart@bootlin.com>
Tue, 26 May 2020 16:22:53 +0000 (18:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 22:33:56 +0000 (15:33 -0700)
commite7526014d4d4ba55751f3a81da1ccd4593131f68
tree3d306303db623fd29649706d6fa41e2178ecf914
parent8594622dc4cbf585514c8c12eb17d7d7d931a7bf
net: phy: mscc-miim: use more reasonable delays

The MSCC MIIM MDIO driver uses delays to read poll a status register. I
made multiple tests on a Ocelot PCS120 platform which led me to reduce
those delays. The delay in between which the polling function is allowed
to sleep is reduced from 100us to 50us which in almost all cases is a
good value to succeed at the first retry. The overall delay is also
lowered as the prior value was really way to high, 10000us is large
enough.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mscc-miim.c