Skip to content
Commit b34bc22b authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Michal Simek
Browse files

timer: xilinx-timer: use timer_conv_64() to fix timer wrap around



Current xilinx_timer_get_count() implementation does not take into account
the periodic 32-bit wrap arounds, as it directly returns the 32-bit counter
register value. The roll-overs cause problems in the upper timer layers, as
generic timer code expects an incrementing 64-bit value from get_count() to
work correctly.

Add the missing 64-bit up-conversion to fix random hangs/delays in
__udelay().

Fixes: a36d8672 ("microblaze: Convert axi timer to DM driver")
Signed-off-by: default avatarOvidiu Panait <ovpanait@gmail.com>
Reviewed-by: default avatarMichal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20221012053656.1492457-3-ovpanait@gmail.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent 8272d4cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment