diff options
author | Philipp Tomsich | 2017-09-11 22:04:11 +0200 |
---|---|---|
committer | Philipp Tomsich | 2017-09-18 20:40:33 +0200 |
commit | af823151641b1a9a8eae8c3b111f5fa27e6873ac (patch) | |
tree | ab1c2cc6793ab8511b5f66bea2b95d38cbb5e4c7 /drivers/core | |
parent | b61e8b0c9e76dacf0b670c3948c3cd738b2379a3 (diff) |
dm: timer: handle being called before dm_root is ready
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@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Diffstat (limited to 'drivers/core')
0 files changed, 0 insertions, 0 deletions