Commit ecab386a authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Sasha Levin
Browse files

pwm: atmel-hlcdc: Fix clock imbalance related to suspend support



[ Upstream commit e25ac87d ]

The suspend callback disables the periph clock when the PWM is enabled
and resume reenables this clock if the PWM was disabled before. Judging
from the code comment it's suspend that is wrong here. Fix accordingly.

Fixes: f9bb9da7 ("pwm: atmel-hlcdc: Implement the suspend/resume hooks")
Reviewed-by: default avatarClaudiu Beznea <claudiu.beznea@tuxon.dev>
Link: https://lore.kernel.org/r/b51ea92b0a45eff3dc83b08adefd43d930df996c.1706269232.git.u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 78b8952e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment