Skip to content
Commit c4d7247a authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

dm: rtc: Avoid a race in the rtc_reset test



Since resetting the RTC on sandbox causes it to read the base time from
the system, we cannot rely on this being unchanged since it was last read.
Allow for a one-second delay.

Reviewed-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fixes: https://source.denx.de/u-boot/u-boot/-/issues/4


Reported-by: default avatarBin Meng <bmeng.cn@gmail.com>
Reported-by: default avatarTom Rini <trini@konsulko.com>
Suggested-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent ea94d053
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