mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-25 02:52:22 +03:00
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:
committed by
mobile promotions
parent
0082517f74
commit
ba48e2c17f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user