[PATCH v2] time: Fix get_ticks being non-monotonic

Simon Glass
2020-11-21T23:07:48Z

Hi Michael,

On Thu, 19 Nov 2020 at 04:23, Michael Opdenacker
<michael.opdenacker@bootlin.com> wrote:
>
> Hi,
>
> Sorry, no messaging quoting, I was not subscribed to the list at that time.
>
> Merging this change into master actually broke the SPL on
> Atmel/Microchip SAMA5D3, at least booting from MMC:
>
> RomBOOT
>
> <debug_uart>
> Could not initialize timer (err -11)
>
> Could not initialize timer (err -11)
>
> Could not initialize timer (err -11)
> ...
>
> I'll look for a fix, but suggestions are welcome!

The board might need CONFIG_TIMER_EARLY, but otherwise I think it is a
case of figuring out why the timer is used before it is available.

You can use dm_dump_all() to print out available devices and whether
they are probed.

Regards,
Simon