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 <narayanr@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2164976
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Narayan Reddy
2019-07-31 15:09:09 +05:30
committed by mobile promotions
parent 0082517f74
commit ba48e2c17f

View File

@@ -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;