Re: [PATCH] drivers/clocksource/timer-ti-dm: Don't call clk_get_rate() in stop function

From: Tony Lindgren
Date: Tue Oct 03 2023 - 03:57:14 EST


* Ivaylo Dimitrov <ivo.g.dimitrov.75@xxxxxxxxx> [231003 05:50]:
> clk_get_rate() might sleep, and that prevents dm-timer based PWM from being
> used from atomic context.
>
> Fix that by getting fclk rate in probe() and using a notifier in case rate
> changes.

Makes sense to me:

Reviewed-by: Tony Lindgren <tony@xxxxxxxxxxx>