Skip to content

CONFIG_EARLY_TIMER: Fix EAGAIN issue and use DM too

Johannes Krottmayer u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2common: board_f.c: Fix EAGAIN issue when CONFIG_TIMER_EARLY is selectedcommon/board_f.c+0 -61 reply
2/2lib: time.c: Try also DM timer, when CONFIG_TIMER_EARLY is selectedlib/time.c+32 -141 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] CONFIG_EARLY_TIMER: Fix EAGAIN issue and use DM too

Hi,

I'm currently working on support for a STMicroelectronics board. I have written a DM driver which implements the timer_early_* functions. But noticed an issue when the configuration switch is set.

common/board_f.c
Here this leads in an EAGAIN issue, becaues the DM sub-system isn't running at this point.

lib/time.c
I modified the routines here, because it's also could fail. An addintionl feature is, that if CONFIG_EARLY_TIMER first it probes if, the DM timer is present, if not it uses the timer_early_* functions.

Have compiled it in both configurations, and it works as accepted.

Kind regards,

Johannes

---

Johannes Krottmayer (2):
common: board_f.c: Fix EAGAIN issue when CONFIG_TIMER_EARLY is
selected
lib: time.c: Try also DM timer, when CONFIG_TIMER_EARLY is selected

 common/board_f.c |  6 ------
 lib/time.c       | 46 ++++++++++++++++++++++++++++++++--------------
 2 files changed, 32 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1