From: Thierry Reding <thierry.reding@gmail.com>
To: Fabio Estevam <fabio.estevam@nxp.com>
Cc: festevam@gmail.com, linux@arm.linux.org.uk,
lw@karo-electronics.de, linux-pwm@vger.kernel.org
Subject: Re: [PATCH v3 RESEND] pwm: imx: Let PWM be active during suspend
Date: Wed, 28 Mar 2018 00:18:18 +0200 [thread overview]
Message-ID: <20180327221816.GE28163@mithrandir> (raw)
In-Reply-To: <1514898119-19632-1-git-send-email-fabio.estevam@nxp.com>
[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]
On Tue, Jan 02, 2018 at 11:01:59AM -0200, Fabio Estevam wrote:
> 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>
> ---
> Hi Thierry,
>
> Resending it in the hope we can still get this in for 4.16.
>
> Please not that STOPEN is also unconditionally set in vendor's kernel:
> http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/plat-mxc/pwm.c?h=imx_3.0.35_4.1.0#n106
>
> drivers/pwm/pwm-imx.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2018-03-27 22:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-02 13:01 [PATCH v3 RESEND] pwm: imx: Let PWM be active during suspend Fabio Estevam
2018-02-14 1:48 ` Fabio Estevam
2018-03-27 22:18 ` Thierry Reding [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180327221816.GE28163@mithrandir \
--to=thierry.reding@gmail.com \
--cc=fabio.estevam@nxp.com \
--cc=festevam@gmail.com \
--cc=linux-pwm@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=lw@karo-electronics.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox