All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Bill Gatliff <bgat@billgatliff.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PWM v6 1/3] PWM: Implement a generic PWM framework
Date: Sun, 06 Mar 2011 07:35:17 +0100	[thread overview]
Message-ID: <4D732B25.2010708@metafoo.de> (raw)
In-Reply-To: <4D7326B0.6050706@metafoo.de>

On 03/06/2011 07:16 AM, Lars-Peter Clausen wrote:
> On 03/06/2011 05:17 AM, Bill Gatliff wrote:
>> +
>> +
>> +pwm_set_handler() -- Defines an end-of-period callback.  The indicated
>> +function will be invoked in a worker thread at the end of each PWM
>> +period, and can subsequently invoke pwm_config(), etc.  Must be used
>> +with extreme care for high-speed PWM outputs.  Set the handler
>> +function to NULL to un-set the handler.
>> +

This looks like a poor man's IRQ handler implementation. In my opinion something
like pwm_to_irq would be better suited interface.

- Lars

  reply	other threads:[~2011-03-06  6:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06  4:17 [PWM v6 0/3] Implement a generic PWM framework Bill Gatliff
2011-03-06  4:17 ` [PWM v6 1/3] PWM: " Bill Gatliff
2011-03-06  6:16   ` Lars-Peter Clausen
2011-03-06  6:35     ` Lars-Peter Clausen [this message]
2011-03-07 16:28       ` Bill Gatliff
2011-03-07 19:26         ` Lars-Peter Clausen
2011-03-09 16:15           ` Bill Gatliff
2011-03-07 16:26     ` Bill Gatliff
2011-03-07 19:02       ` Lars-Peter Clausen
2011-03-09 16:19         ` Bill Gatliff
2011-03-09 17:05     ` Bill Gatliff
2011-03-10  3:13       ` Lars-Peter Clausen
2011-03-06 12:16   ` Linus Walleij
2011-03-07 16:30     ` Bill Gatliff
2011-03-07  4:20   ` Jack Stone
2011-03-07 16:35     ` Bill Gatliff
2011-03-07 17:08       ` Bill Gatliff
2011-03-08 18:12         ` Jack Stone
2011-03-09 16:19           ` Bill Gatliff
2011-03-06  4:17 ` [PWM v6 2/3] PWM: GPIO+hrtimer device emulation Bill Gatliff
2011-03-06  4:17 ` [PWM v6 3/3] PWM: Atmel PWMC driver Bill Gatliff
  -- strict thread matches above, loose matches on Subject: below --
2011-02-21  3:35 [PWM v6 0/3] Implement a generic PWM framework Bill Gatliff
2011-02-21  3:35 ` [PWM v6 1/3] PWM: " Bill Gatliff

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=4D732B25.2010708@metafoo.de \
    --to=lars@metafoo.de \
    --cc=bgat@billgatliff.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.