mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@avionic-design.de>
To: "Philip, Avinash" <avinashphilip@ti.com>
Cc: linux-kernel@vger.kernel.org, nsekhar@ti.com
Subject: Re: [PATCH v2] pwm: Add support for configuring the PWM polarity
Date: Thu, 9 Aug 2012 07:47:08 +0200	[thread overview]
Message-ID: <20120809054708.GD29806@avionic-0098.mockup.avionic-design.de> (raw)
In-Reply-To: <1343138732-12972-1-git-send-email-avinashphilip@ti.com>

[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]

On Tue, Jul 24, 2012 at 07:35:32PM +0530, Philip, Avinash wrote:
> Some hardware supports inverting the polarity of the PWM signal. This
> commit adds support to the PWM framework to allow users of the PWM API
> to configure the polarity. Note that in order to reduce complexity,
> changing the polarity of a PWM signal is only allowed while the PWM is
> disabled.
> 
> A practical example where this can prove useful is to simulate inversion
> of the duty cycle. While inversion of polarity and duty cycle are not
> exactly the same, the differences for most use-cases are negligible.
> 
> Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
> ---
> changes in  V2:
> 	- Updates commit message
> 	- Provides proper comments
> 	- Removes usage of polarity variable.
> 	- Removes encoding of polarity in flags
> 
> Configuring polarity to be done with PWM device disabled, if not failure
> reported.
> 
> If PWM device is enabled while configuring polarity, disabling and
> re_enabling make it complex. Whoever uses this API has to taken care of
> the basic rules.
> 
> Discussions related to this can found at
> http://www.spinics.net/lists/kernel/msg1372110.html
> 
> :100644 100644 ecb7690... f0a1db3... M	drivers/pwm/core.c
> :100644 100644 21d076c... 354764c... M	include/linux/pwm.h
>  drivers/pwm/core.c  |   22 ++++++++++++++++++++++
>  include/linux/pwm.h |   23 +++++++++++++++++++++++
>  2 files changed, 45 insertions(+), 0 deletions(-)

Applied, thanks.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

      parent reply	other threads:[~2012-08-09  5:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-24 14:05 Philip, Avinash
2012-07-24 14:30 ` Thierry Reding
2012-08-09  5:47 ` 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=20120809054708.GD29806@avionic-0098.mockup.avionic-design.de \
    --to=thierry.reding@avionic-design.de \
    --cc=avinashphilip@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nsekhar@ti.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

Powered by JetHome