diff options
author | Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> | 2023-10-03 08:50:20 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2023-10-11 10:14:53 +0200 |
commit | 12590d4d0e331d3cb9e6b3494515cd61c8a6624e (patch) | |
tree | f383a43dc01c5bdf343aaf008682572bb8731260 /drivers/clocksource/timer-riscv.c | |
parent | 8051a993ce222a5158bccc6ac22ace9253dd71cb (diff) | |
download | linux-12590d4d0e331d3cb9e6b3494515cd61c8a6624e.tar.gz linux-12590d4d0e331d3cb9e6b3494515cd61c8a6624e.tar.bz2 linux-12590d4d0e331d3cb9e6b3494515cd61c8a6624e.zip |
drivers/clocksource/timer-ti-dm: Don't call clk_get_rate() in stop function
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.
Fixes: af04aa856e93 ("ARM: OMAP: Move dmtimer driver out of plat-omap to drivers under clocksource")
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1696312220-11550-1-git-send-email-ivo.g.dimitrov.75@gmail.com
Diffstat (limited to 'drivers/clocksource/timer-riscv.c')
0 files changed, 0 insertions, 0 deletions