diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-01-26 13:04:33 +0100 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-02-04 13:53:57 +0100 |
commit | e25ac87d3f831fed002c34aadddaf4ebb4ea45ec (patch) | |
tree | f0bc1071d8488715b2066af1296b64d5e528f9f6 /drivers/pwm/pwm-dwc.c | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) | |
download | linux-e25ac87d3f831fed002c34aadddaf4ebb4ea45ec.tar.gz linux-e25ac87d3f831fed002c34aadddaf4ebb4ea45ec.tar.bz2 linux-e25ac87d3f831fed002c34aadddaf4ebb4ea45ec.zip |
pwm: atmel-hlcdc: Fix clock imbalance related to suspend support
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>
Diffstat (limited to 'drivers/pwm/pwm-dwc.c')
0 files changed, 0 insertions, 0 deletions