pwm2 prevents system to go in suspend mode
Hi,
I've set up 3 pwmleds on my board, 1 led ("led1") on pwm2 (TIM2_CH4 on PA3) and the other 2 ("led2" and "led3") on pwm8 (TIM8_CH1 on PH13 and TIM8_CH2 on PH14). If I put the system in suspend mode it doesn't work. The system gives me the following message:
"
stm32-pwm 40000000.timer:pwm: PWM 3 still in use by consumer led1
PM: dpm_run_callback(): platform_pm_suspend+0x0/0x48 returns -16
stm32-pwm 40000000.timer:pwm: PM: failed to suspend: error -16
PM: Some devices failed to suspend, or early wake event detected"
"
If I disable the led1 in the devicetree and leave only the other 2 leds (led2 and led3) on pwm8 the suspend works as expected.
Any idea?
