diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2025-07-25 17:45:08 +0200 |
---|---|---|
committer | Uwe Kleine-König <ukleinek@kernel.org> | 2025-09-15 11:39:45 +0200 |
commit | a911f15745fd4a93381b52acea3083e7e9fd135a (patch) | |
tree | 04b1d61c9ef111fa61fb15f96750bb9a3845a661 /rust/helpers/processor.c | |
parent | f43e1280731c2a6bbd2d9517fd6b726d6ebe6641 (diff) |
pwm: mediatek: Initialize clks when the hardware is enabled at probe time
When a PWM is already configured by the bootloader (e.g. to power a
backlight), the clk enable count must be increased to keep clock usage
balanced. So check which PWMs are enabled during probe and enable the
respective clocks.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250725154506.2610172-14-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions