]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pwm: brcmstb: Utilize appropriate clock APIs in suspend/resume
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Wed, 4 Oct 2023 17:54:14 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 09:30:15 +0000 (10:30 +0100)
commite3677bfcbbcb368f0b4ea4306dbc8c035b86f8b8
tree19a588ee878bd9ef482f295f8ec0f03ae4e053f1
parent6e9b5295892edf84b943fed19302f7020764d099
pwm: brcmstb: Utilize appropriate clock APIs in suspend/resume

[ 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: 3a9f5957020f ("pwm: Add Broadcom BCM7038 PWM controller support")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/pwm-brcmstb.c