pwm: mediatek: Handle hardware enable and clock enable separately
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 28 Jul 2025 16:00:17 +0000 (18:00 +0200)
committerUwe Kleine-König <ukleinek@kernel.org>
Tue, 29 Jul 2025 15:46:18 +0000 (17:46 +0200)
commit704d918341c378c5f9505dfdf32d315e256d3846
treeb424fe8a17e3f1ea5106069be7e10ae995de49ad
parent68b9272ca7ac948b71aba482ef8244dee8032f46
pwm: mediatek: Handle hardware enable and clock enable separately

Stop handling the clocks in pwm_mediatek_enable() and
pwm_mediatek_disable(). This is a preparing change for the next commit
that requires that clocks and the enable bit are handled separately.

Also move these two functions a bit further up in the source file to
make them usable in pwm_mediatek_config(), which is needed in the next
commit, too.

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/55c94fe2917ece152ee1e998f4675642a7716f13.1753717973.git.u.kleine-koenig@baylibre.com
Cc: stable@vger.kernel.org
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-mediatek.c