Commit b5a497a7 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Daniel Lezcano
Browse files

clocksource/drivers/stm32-lptimer: Add support for suspend / resume



Add support for power management on STM32 LPTIMER clocksource driver:
- Upon clockevents_suspend(), shutdown the LPTIMER, and balance the
clk_prepare_enable() from the probe routine.
- Upon clockevents_resume(), restore the prescaler that may have been lost
during low power mode, and restore the clock.

Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20250224172101.3448398-1-fabrice.gasnier@foss.st.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent f7803f79
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment