]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
pwm: imx: Let PWM be active during suspend
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 2 Jan 2018 13:01:59 +0000 (11:01 -0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 27 Mar 2018 22:17:36 +0000 (00:17 +0200)
commit1f6eefeb7cd45360397fb5d3f08ce9ec41e80b17
tree64d35667eccf3794fed940dbca515082cce0317a
parent204e17baa6fd2ec02deca08cdcb60aad77cbd043
pwm: imx: Let PWM be active during suspend

On a imx6q-cubox-i board, which has an LED driven by PWM, when the system
goes into suspend the PWM block is disabled by default, then the PWM pin
goes to logic level zero and turn on the LED during suspend, which is not
really the behaviour we want to see.

By keeping the PWM enabled during suspend via STOPEN bit, the pwm-leds
driver sets the brightness to zero in suspend and then the LED is
turned off as expected.

So always set the STOPEN to fix the PWM behaviour in suspend.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-imx.c