summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoratiu Vultur <[email protected]>2019-05-23 21:45:33 +0200
committerJoe Hershberger <[email protected]>2019-07-15 13:32:25 -0500
commit149468699e8f631f69d55b5c86b430824fc32d69 (patch)
treebcf05c5cfa921f1b8ee5485c59f99d0d6ab71b3e
parent2529dea8931849c2bf8ee32963ee846e8e06e390 (diff)
net: mscc: serval: Remove delay when serdes is configured
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 <[email protected]> Reviewed-by: Daniel Schwierzeck <[email protected]> Acked-by: Joe Hershberger <[email protected]>
-rw-r--r--drivers/net/mscc_eswitch/serval_switch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c
index 2559f5d0cd1..2c309412538 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,