]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: rtc: Try to avoid a race in rtc_set_get test
authorSimon Glass <sjg@chromium.org>
Mon, 1 Aug 2022 13:58:47 +0000 (07:58 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 2 Sep 2022 20:21:44 +0000 (16:21 -0400)
commitfc7ceae0d5b7a017c3fed88a8bfe2eb3d24058a9
tree830386de44f8a0e434c4972faefffc728bded7a4
parentc4d7247a389ae2770ddcdada5143401068a696c0
dm: rtc: Try to avoid a race in rtc_set_get test

It seems that the time can change in between getting it and reading the
offset. Check for this and try again if this happens.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/dm/rtc.c