diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-01-26 15:04:33 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-27 01:19:26 +0300 |
commit | dae1b8166ca1e8f28e2761d73357f2400ab21228 (patch) | |
tree | fe87064b5a775c2c9b812b34008e04b46846377a /lib | |
parent | 93c17dc0cc14b9eeaf66cc086a18f9c8fceeeaa4 (diff) | |
download | linux-dae1b8166ca1e8f28e2761d73357f2400ab21228.tar.xz |
pwm: atmel-hlcdc: Fix clock imbalance related to suspend support
[ Upstream commit e25ac87d3f831fed002c34aadddaf4ebb4ea45ec ]
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: f9bb9da7c09d ("pwm: atmel-hlcdc: Implement the suspend/resume hooks")
Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Link: https://lore.kernel.org/r/b51ea92b0a45eff3dc83b08adefd43d930df996c.1706269232.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions