[U-Boot] [PATCH 03/18] dm: timer: handle being called before dm_root is ready

Simon Glass sjg at chromium.org
Sat Aug 26 13:39:41 UTC 2017


On 16 August 2017 at 11:32, Philipp Tomsich
<philipp.tomsich at theobroma-systems.com> wrote:
> When used with bootstage recording, dm_timer_init may be called
> surprisingly early: i.e. before dm_root is ready. To deal with
> this case, we explicitly check for this condition and return
> -EAGAIN to the caller (refer to drivers/timer/rockchip_timer.c
> for a case where this is needed/used).
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
>
>  drivers/timer/timer-uclass.c | 7 +++++++
>  1 file changed, 7 insertions(+)

We should be using the early timer in this situation but I suppose
this is useful for boards that don't have one.

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list