From: Jack Stone <jwjstone@fastmail.fm>
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: Tue, 08 Mar 2011 18:12:14 +0000 [thread overview]
Message-ID: <4D76717E.2000900@fastmail.fm> (raw)
In-Reply-To: <AANLkTikbW-FApSyx0FyVUCYHUG=0HS8JHpoNha0EdiZH@mail.gmail.com>
On 07/03/2011 17:08, Bill Gatliff wrote:
> Jack:
>
> On Mon, Mar 7, 2011 at 10:35 AM, Bill Gatliff <bgat@billgatliff.com> wrote:
>> On Sun, Mar 6, 2011 at 10:20 PM, Jack Stone <jwjstone@fastmail.fm> wrote:
>>>> +menuconfig GENERIC_PWM
>>>> + tristate "PWM Support"
>>>> + help
>>>> + Enables PWM device support implemented via a generic
>>>> + framework. If unsure, say N.
>>>> +
>>>
>>> Does this need help text? Can't we just select GENERIC_PWM for the
>>> drivers / users that need it?
>>
>> That would be my preference, actually. I'll see if I can do that at
>> the next review.
>
> Actually, I take that back. Unlike gpiolib, the PWM API isn't
> mandatory. So I think I'll leave this as a menuconfig.
>
>
> b.g.
It's up to you, of course, but I don't see why I would want to choose.
It makes life much easier for users if they only have to support one way
of talking to PWM devices and any device can be connected to any user,
with appropriate connections provided by platform data.
If you make it a depend rather than it being selected when needed then
either the driver supports multiple interfaces (which is harder to
maintain) or the person configuring the kernel has to know to build
GENERIC_PWM to get the drivers they want.
It seems much simpler to me to always use it in appropriate
drivers/users and therefore if the person configuring the kernel does
not have to know anything new and the support will only be included if
needed.
Just my £0.02,
Jack
next prev parent reply other threads:[~2011-03-08 18:21 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
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 [this message]
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=4D76717E.2000900@fastmail.fm \
--to=jwjstone@fastmail.fm \
--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.