Linux PWM subsystem development
 help / color / mirror / Atom feed
From: "Lothar Waßmann" <LW@KARO-electronics.de>
To: Fabio Estevam <festevam@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>,
	linux-pwm@vger.kernel.org, Rob Herring <robh@kernel.org>,
	Russell King <linux@arm.linux.org.uk>,
	Fabio Estevam <fabio.estevam@nxp.com>,
	Lukasz Majewski <lukma@denx.de>
Subject: Re: [PATCH v3] pwm: imx: Let PWM be active during suspend
Date: Mon, 11 Dec 2017 16:55:45 +0100	[thread overview]
Message-ID: <20171211165545.2d4b21bd@karo-electronics.de> (raw)
In-Reply-To: <CAOMZO5AwijXQi=gR9BaW_WYVPBpCpa8V=wWMcHBt+xCqNySo8A@mail.gmail.com>

Hi,

On Mon, 11 Dec 2017 13:07:46 -0200 Fabio Estevam wrote:
> Hi Lothar,
> 
> On Mon, Dec 11, 2017 at 11:20 AM, Lothar Waßmann <LW@karo-electronics.de> wrote:
> 
> > The problem is, that the PWM output goes low whenever the PWM is
> > disabled, no matter what polarity is programmed. So, you would need to
> > prevent the PWM from being disabled whenever the duty cycle is set to 0.
> 
> Yes, that's the key point: PWM output goes low when PWM is disabled.
> 
> I don't think we can workaround this behaviour in the pwm-imx driver.
> 
> So at the moment I see two ways to fix this:
> 
> 1. Set the STOPEN bit which is what I do in this patch
> 
This should probably work.
But this won't fix the issue, that the LED or backlight is turned fully
on when the brightness value is set to 0, since both the leds-pwm and
the pwmbl driver explicitly disable the PWM, when the brightness
value is set to 0.

> 2. Add support for allowing changing pinctrl in suspend:
> https://pastebin.com/71UGrnkA
> 
> This way we can configure the pwm output pin as Hi-Z during suspend.
> 
> What do you think?
>
It would be better to enable the 22K pullup on the pin. Otherwise the
pin will be floating when there is no external pullup resistor.


Lothar Waßmann

  reply	other threads:[~2017-12-11 15:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-20 23:27 [PATCH v3] pwm: imx: Let PWM be active during suspend Fabio Estevam
2017-12-04 12:29 ` Fabio Estevam
2017-12-05  8:47 ` Thierry Reding
2017-12-05 18:56   ` Fabio Estevam
2017-12-08 17:22     ` Fabio Estevam
2017-12-11  9:16     ` Thierry Reding
2017-12-11  9:36       ` Russell King - ARM Linux
2017-12-11 12:09         ` Thierry Reding
2017-12-11 10:54       ` Fabio Estevam
2017-12-11 12:13         ` Thierry Reding
2017-12-11 12:24           ` Fabio Estevam
2017-12-11 13:20             ` Lothar Waßmann
2017-12-11 15:07               ` Fabio Estevam
2017-12-11 15:55                 ` Lothar Waßmann [this message]
2017-12-11 16:06                   ` Fabio Estevam
2017-12-11 16:52                     ` Lothar Waßmann
2017-12-11 18:48                       ` Fabio Estevam
2017-12-15 12:02                         ` Lothar Waßmann
2017-12-16 18:26                           ` Fabio Estevam

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=20171211165545.2d4b21bd@karo-electronics.de \
    --to=lw@karo-electronics.de \
    --cc=fabio.estevam@nxp.com \
    --cc=festevam@gmail.com \
    --cc=linux-pwm@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lukma@denx.de \
    --cc=robh@kernel.org \
    --cc=thierry.reding@gmail.com \
    /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