]> git.baikalelectronics.ru Git - uboot.git/commit
timer: orion-timer: Use timer_conv_64() to fix timer wrap around
authorStefan Roese <sr@denx.de>
Thu, 15 Sep 2022 14:20:36 +0000 (16:20 +0200)
committerStefan Roese <sr@denx.de>
Sun, 18 Sep 2022 10:41:57 +0000 (12:41 +0200)
commit89d8f884de511a61ca9e19b714ee742a9b90825f
tree49b577aabdf7dc2483b895bc02ed560cfcf56535
parenteb4745a83932d310ce2451198dc182d392a639c1
timer: orion-timer: Use timer_conv_64() to fix timer wrap around

While testing on some Kirkwood platforms it was noticed that the timer
did not function correctly all the time. The driver did not correctly
handle 32bit timer value wrap arounds. Using the timer_conv_64()
conversion function fixes this issue.

Fixes: 36d7dce3db37 ("timer: add orion-timer support")
Suggested-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier-oss@weidmueller.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Tony Dinh <mibodhi@gmail.com>
drivers/timer/orion-timer.c