Re: [PATCH v2] pwm: imx: Allow keeping the PWM active during suspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sat, Nov 18, 2017 at 12:36:08PM -0200, Fabio Estevam wrote:
> In some systems it is desirable to keep the PWM active during system
> suspend.
> 
> One use case is the imx6q-cubox-i board, which has an LED driven by PWM.
> When the system goes into suspend the PWM block is disabled by default,
> the PWM pin goes to zero and turn on the LED during suspend, which is
> not really the behaviour we want to see.

Seems to me the default behavior should be LEDs are off in suspend and 
you'd add a property to enable them if desired.

You problem to me sounds like something that should be fixed in the pwm 
and/or pwm-led drivers.

> 
> By keeping the PWM enabled during suspend the pwm-leds driver sets
> the brightness to zero in suspend and then the LED is turned off as
> expected.
> 
> Introduce the 'fsl,active-in-suspend' property to indicate that the
> PWM will stay active during suspend.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux