clk: pwm: Make use of non-sleeping PWMs
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Wed, 30 Apr 2025 09:57:49 +0000 (11:57 +0200)
committerStephen Boyd <sboyd@kernel.org>
Fri, 20 Jun 2025 01:09:58 +0000 (18:09 -0700)
commitf5f792f07bd23f26fcc98a0fca596a2101a6f640
tree33d8272f2f4730c20564ce6db5a4e01e016356b0
parent91d10161226c1edfb1354441ad78b9ae679a6108
clk: pwm: Make use of non-sleeping PWMs

For some PWMs applying a configuration doesn't sleep. For these enabling
and disabling can be done in the clk callbacks .enable() and .disable()
instead of .prepare() and .unprepare().

Do that to possibly reduce the time the PWM is enabled and so save some
energy.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/d2f748101194409fb410711380ea52ed33260644.1746006578.git.ukleinek@baylibre.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-pwm.c