diff options
author | Marek Vasut <marex@denx.de> | 2019-04-10 13:44:05 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-04-17 22:20:18 +0200 |
commit | e09c1a133155724d3369e150f3ab7b63c875101c (patch) | |
tree | 81e0d1d30128fbf2a15881d3622c8d0e25506a8d /arch/arm | |
parent | 2c494e62c31a34746d88511e075aa187ac3f7d10 (diff) |
timer: dw-apb: Add missing 64bit up-conversion
The generic timer count is an incrementing 64bit value and a timer driver
must return an incrementing 64bit value. The DW APB timer only provides a
32bit timer counting down, thus the result must be inverted and converted
to a 64bit value. The current implementation is however missing the 64bit
up-conversion and this results in random timer roll-overs, which in turn
triggers random timeouts throughout the codebase.
This patch adds the missing 64bit up-conversion to fix the issue.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Tien Fong Chee <tien.fong.chee@intel.com>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions