[U-Boot] [U-Boot, v3, 03/19] dm: timer: handle being called before dm_root is ready

Philipp Tomsich philipp.tomsich at theobroma-systems.com
Tue Sep 12 10:54:14 UTC 2017


> 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>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Acked-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
> 
> Changes in v3: None
> Changes in v2: None
> 
>  drivers/timer/timer-uclass.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list