public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Laszlo Papp <lpapp@kde.org>
Cc: Marcus Folkesson <marcus.folkesson@gmail.com>,
	hjk@hansjkoch.de, lm-sensors@lm-sensors.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] hwmon: (max6650) Add support for gpiodef
Date: Tue, 19 Nov 2013 08:54:38 -0800	[thread overview]
Message-ID: <20131119165438.GD30481@roeck-us.net> (raw)
In-Reply-To: <CAOMwXhM1Xi=UqpmKNDsOnQLXKo1o+65TZi6AkBk4Ds9wuXSaWQ@mail.gmail.com>

On Tue, Nov 19, 2013 at 04:42:49PM +0000, Laszlo Papp wrote:
> On Fri, Nov 15, 2013 at 7:52 PM, Marcus Folkesson
> <marcus.folkesson@gmail.com> wrote:
> >
> >> This is just one use case of those, you could also use it for
> >> non-generic gpio functionality, like alarm, "full-on", internal clock,
> >> external clock, etc. I believe it is always a bit tricky with MFD. I
> >> personally prefer to put it into the chip driver because this is not
> >> clearly a generic gpio interface here, and I need to drive it
> >> dynamically.
> >
> > I agree.
> >
> > I think the solution with expose the "GPIOs" in sysfs is the right way to
> > go.
> > The chip-function is of a dynamic nature and should therefor not be set in
> > platform data / devicetree.
> >
> > As mentioned before, GPIOs should use the gpio subsystem whenever possible,
> > but the the gpio-functionality is just a subset of
> > functions these pins may be set to.
> >
> > Also, the I think the *real* reason why the entries is called "gpio" is that
> > it is so the registers are are mentioned in the datasheet.
> > Everyone that is working with the device will know what it is all about.
> > I see it more as an register expose than a gpio interface...
> >
> > I agree that the entries does not really fit here. But they does not fit
> > better elsewhere either.
> > And I don't think they fit worse than the alarm-entries that is already in
> > mainline.
> >
> > Anyway, I think the documentation file should mention what function each
> > valid value represent.
> 
> Yes, makes sense to make the documentation more comprehensive. Thanks.
> 
> Any other issues from anyone before submitting a polished version?
> 
You'll have to get feedback from Jean. I won't accept the patch.

Guenter

  reply	other threads:[~2013-11-19 16:54 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-14 14:51 [PATCH] hwmon: (max6650) Add support for gpiodef Laszlo Papp
2013-11-14 17:24 ` Guenter Roeck
     [not found]   ` <CAOMwXhNdo8aRGH9AL+JxYnDg2zAN4+-TeHJU=Kc1kDKmyYuYmA@mail.gmail.com>
2013-11-14 18:18     ` Guenter Roeck
2013-11-14 18:35       ` Laszlo Papp
2013-11-14 19:00         ` Guenter Roeck
2013-11-14 20:26           ` Laszlo Papp
     [not found]             ` <CAJ4dqQu0=HP=Ut+VnNjkSL2cE8QN+JRa-Xd8X01ij+ijKUKxwA@mail.gmail.com>
2013-11-19 16:42               ` Laszlo Papp
2013-11-19 16:54                 ` Guenter Roeck [this message]
2013-11-19 18:00                   ` [lm-sensors] " Guenter Roeck
2013-11-19 19:43                     ` Laszlo Papp
2013-11-21 15:20                       ` Laszlo Papp
2013-11-21 17:34                         ` Guenter Roeck
2013-11-21 20:52                           ` Laszlo Papp
2013-11-22  9:23                             ` Laszlo Papp
2013-11-22 14:35                               ` Guenter Roeck
2013-11-22 14:50                                 ` Laszlo Papp
2013-11-22 16:04                                   ` Guenter Roeck
2013-11-22 17:47                                     ` Laszlo Papp
2013-11-22 18:05                                       ` Guenter Roeck
2013-11-22 18:08                                         ` Laszlo Papp
2013-12-16 15:56                                           ` Laszlo Papp
2013-12-16 17:27                                             ` Guenter Roeck
2013-12-16 18:28                                               ` Laszlo Papp
2013-12-16 18:28                                                 ` Laszlo Papp
2013-12-16 19:55                                                   ` Guenter Roeck
2013-11-14 18:54 ` Laszlo Papp
  -- strict thread matches above, loose matches on Subject: below --
2013-11-14 18:16 Laszlo Papp

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=20131119165438.GD30481@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=hjk@hansjkoch.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=lpapp@kde.org \
    --cc=marcus.folkesson@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