All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net: mscc: serval: Remove delay when serdes is configured
@ 2019-05-23 19:45 Horatiu Vultur
  2019-06-01 18:10 ` Daniel Schwierzeck
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Horatiu Vultur @ 2019-05-23 19:45 UTC (permalink / raw)
  To: u-boot

When serdes configuration was written in hardware there was a delay
of 100ms to be sure that configuration was written. But the delay is not
needed because already the function serdes_write it is checking that the
operation finished.

Therefore remove the mdelay. This improves the speed of configuring the
network driver.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 drivers/net/mscc_eswitch/serval_switch.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c
index 2559f5d..2c30941 100644
--- a/drivers/net/mscc_eswitch/serval_switch.c
+++ b/drivers/net/mscc_eswitch/serval_switch.c
@@ -356,8 +356,6 @@ static void serdes_write(void __iomem *base, u32 addr)
 	do {
 		data = readl(base + HSIO_MCB_SERDES1G_CFG);
 	} while (data & HSIO_MCB_SERDES1G_CFG_WR_ONE_SHOT);
-
-	mdelay(100);
 }
 
 static void serdes1g_setup(void __iomem *base, uint32_t addr,
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-15 22:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 19:45 [U-Boot] [PATCH] net: mscc: serval: Remove delay when serdes is configured Horatiu Vultur
2019-06-01 18:10 ` Daniel Schwierzeck
2019-06-09 13:32   ` Horatiu Vultur
2019-07-08 21:35 ` Joe Hershberger
2019-07-15 22:51 ` [U-Boot] " Joe Hershberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.