net: mscc: serval: Remove delay when serdes is configured
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Thu, 23 May 2019 19:45:33 +0000 (21:45 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jul 2019 18:32:25 +0000 (13:32 -0500)
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>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mscc_eswitch/serval_switch.c

index 2559f5d0cd1ff272497381ceb9a6ed44de4d3c3e..2c30941253880eab3fb5f6b74054f755a1e79d7f 100644 (file)
@@ -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,