Re: [PATCH] clocksource/drivers/timer-ti-dm: Register clocksource/event only for am654
From: Markus Schneider-Pargmann
Date: Wed Sep 16 2026 - 05:05:20 EST
Hi Daniel,
On Fri Aug 28, 2026 at 8:47 PM CEST, Markus Schneider-Pargmann (TI) wrote:
> Registering clocksource/clockevent for the older platforms breaks
> booting them. The older platforms have their own implementation in early
> boot that is used to register clocksource/clockevent in
> timer-ti-dm-systimer.c.
>
> With am654, the timer is much more complex with more dependencies so
> doing this in early boot with the other driver is very difficult and
> gets ugly. Instead it is implemented in the platform driver for am654.
> However the old platforms may not register clocksource/clockevent in
> this driver as that would break the boot.
>
> Add a system_timer_capable flag that is only set for am654-timer that
> gates the clocksource/clockevent registration.
>
> Reported-by: H. Nikolaus Schaller <hns@xxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/r/2013A99A-0502-4128-ACFA-B04886224393@xxxxxxxxxxxxx
> Fixes: b8eeeca55456 ("clocksource/drivers/timer-ti-dm: Add clocksource support")
> Signed-off-by: Markus Schneider-Pargmann (TI) <msp@xxxxxxxxxxxx>
Did you have time to take a look at this patch?
Thanks,
Markus
Attachment:
signature.asc
Description: PGP signature