Commit f86beeae authored by Florian Fainelli's avatar Florian Fainelli Committed by Zheng Zengkai
Browse files

pwm: brcmstb: Utilize appropriate clock APIs in suspend/resume

stable inclusion
from stable-v6.6.2
commit 1498352ee9305dc89a4fb4e1b178199cd3b19342
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IW7G

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1498352ee9305dc89a4fb4e1b178199cd3b19342



--------------------------------

[ Upstream commit e9bc4411548aaa738905d37851a0146c16b3bb21 ]

The suspend/resume functions currently utilize
clk_disable()/clk_enable() respectively which may be no-ops with certain
clock providers such as SCMI. Fix this to use clk_disable_unprepare()
and clk_prepare_enable() respectively as we should.

Fixes: 3a9f5957 ("pwm: Add Broadcom BCM7038 PWM controller support")
Signed-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 42394569
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment