]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/timer-microchip-pit64b: Use mchp_pit64b_{suspend, resume}
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 9 Jun 2022 09:40:40 +0000 (12:40 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 15 Jul 2022 22:52:37 +0000 (00:52 +0200)
commit250e6299f846a8f59e6ad497e29d1ce6b59d8453
treec28e858f2901853857f746335acfcbf3206c51cd
parentb8723912f4c359329baf82827db6e79921a8d423
clocksource/drivers/timer-microchip-pit64b: Use mchp_pit64b_{suspend, resume}

Use mchp_pit64b_suspend() and mchp_pit64b_resume() to disable or
enable timers clocks on init and remove specific
clk_prepare_{disable, enable} calls. This is ok also for clockevent timer
as proper clock enable, disable is done on .set_state_oneshot,
.set_state_periodic, .set_state_shutdown calls.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220609094041.1796372-3-claudiu.beznea@microchip.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-microchip-pit64b.c