From ba48e2c17f7ebabcf89ca122e3e8606cbe330bb6 Mon Sep 17 00:00:00 2001 From: Narayan Reddy Date: Wed, 31 Jul 2019 15:09:09 +0530 Subject: [PATCH] nvethernetrm: use delay instead of sleep we are making use of spinlock in functional driver to avoid the race on reading the PTP registers, so use delay instead of sleep. Bug 200512422 Change-Id: Ide1b4e8555eab88076e5de46ab919b50d16e4f6b Signed-off-by: Narayan Reddy Reviewed-on: https://git-master.nvidia.com/r/2164976 Reviewed-by: mobile promotions Tested-by: mobile promotions --- osi/core/eqos_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osi/core/eqos_core.c b/osi/core/eqos_core.c index 0f8d88c..9b5f89e 100644 --- a/osi/core/eqos_core.c +++ b/osi/core/eqos_core.c @@ -2734,7 +2734,7 @@ static inline int eqos_poll_for_tsinit_complete(void *addr, cond = 0; } count++; - osd_msleep(1U); + osd_udelay(1000U); } return 0; @@ -2823,7 +2823,7 @@ static inline int eqos_poll_for_addend_complete(void *addr, cond = 0; } count++; - osd_msleep(1U); + osd_udelay(1000U); } return 0; @@ -2904,7 +2904,7 @@ static inline int eqos_poll_for_update_ts_complete(void *addr, cond = 0; } count++; - osd_msleep(1U); + osd_udelay(1000U); } return 0;