From d86184df54c3140087e6ce6b19d959e03ad322f4 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Mon, 3 Jan 2022 15:31:28 +0530 Subject: [PATCH] net/pfe: reduce driver initialization time This patch reduces the delay in the device init. Signed-off-by: Gagandeep Singh Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/net/pfe/pfe_hif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/pfe/pfe_hif.c b/drivers/net/pfe/pfe_hif.c index 69b1d0edde..e2b23bbeb7 100644 --- a/drivers/net/pfe/pfe_hif.c +++ b/drivers/net/pfe/pfe_hif.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright 2018-2019 NXP + * Copyright 2018-2021 NXP */ #include "pfe_logs.h" @@ -766,7 +766,7 @@ pfe_hif_rx_idle(struct pfe_hif *hif) if (rx_status & BDP_CSR_RX_DMA_ACTV) send_dummy_pkt_to_hif(); - sleep(1); + rte_delay_ms(1); } while (--hif_stop_loop); if (readl(HIF_RX_STATUS) & BDP_CSR_RX_DMA_ACTV) -- 2.39.5