On 5/9/22 06:59, [email protected] wrote: Drop the HSD from subject, use ARM: socfpga: tags .
[...]
+__always_inline void __udelay(unsigned long usec)
+{
+ /* get current timestamp */
+ u64 tmp = __get_time_stamp() + __usec_to_tick(usec);
+
+ while (__get_time_stamp() < tmp + 1) /* loop till event */
+ ;
Please handle wrap-around here.

