All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Welling <mwelling@ieee.org>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>,
	folkert <folkert@vanheusden.com>,
	"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>
Subject: Re: Fw: [3.18.3] poll() on gpio pins broken
Date: Mon, 9 Mar 2015 15:22:58 -0500	[thread overview]
Message-ID: <20150309202258.GA3398@deathray> (raw)
In-Reply-To: <CACRpkdZBc3ry_0sOVRpwnTHNZ1M7CmHw9Us_XPen3pQQP0OazA@mail.gmail.com>

On Mon, Mar 09, 2015 at 04:52:26PM +0100, Linus Walleij wrote:
> On Wed, Mar 4, 2015 at 1:43 PM, Alexandre Courbot <gnurou@gmail.com> wrote:
> > On Tue, Mar 3, 2015 at 7:31 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> >> On Tue, Mar 3, 2015 at 9:27 AM, Alexandre Courbot <gnurou@gmail.com> wrote:
> >>
> >>> It really comes down to how user-space wants to access GPIOs. I
> >>> suspect the majority of sysfs accesses is done by scripts and other
> >>> simple programs. If we introduce a char device that takes requires
> >>> ioctls, it is then customary to add a small user-space library to
> >>> abstract that (for both convenience and safety - think libdrm). Do we
> >>> want to maintain libgpio?
> >>
> >> Good point.
> >>
> >> We have no clue about how the majority out there use the GPIO
> >> sysfs, but I have heard of mission-critical systems just hammering
> >> GPIOs from userspace.
> >>
> >> Sadly many of these industrial users are "I just want it to work, now"
> >> types and they don't step forward much on these mailing lists.
> >> (Learned from private conversations...)
> >>
> >> Maybe if noone voice their opinion and offer to help with this, we can
> >> assume they don't exist (well obviously a community does not exist)
> >> and their specific needs be ignored until they put their money where
> >> their mouth is.
> >
> > That's the only way we can handle the situation if people don't
> > manifest their needs. But does this mean that you would agree with a
> > cleaner, multi-GPIO friendly sysfs-based solution, or I am
> > misunderstanding you?
> 
> I guess I'm just a bit grumpy.
> 
> Whoever comes up with a cleaner sysfs or a clean device interface
> will win the argument and lock the path for the other approach.
> It's like a forking path with no going back or something.

There is no need to fork and in fact it would probably be a bad idea.

At EMAC we support both sysfs and character device simultaneously.
Sysfs for the ease of use and ioctl for real time advantages.

Not saying that it is a good reference but the two interfaces "could" co-exist.

> 
> Yours,
> Linus Walleij

  parent reply	other threads:[~2015-03-09 20:23 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 15:29 Fw: [3.18.3] poll() on gpio pins broken folkert
2015-01-30 23:45 ` Michael Welling
2015-01-31  8:33   ` folkert
2015-01-31 13:39     ` Alexandre Courbot
2015-01-31 13:53       ` folkert
2015-02-03  9:03       ` Michael Welling
2015-02-13  3:43         ` Linus Walleij
2015-02-19  8:53           ` folkert
2015-02-19 16:52             ` Linus Walleij
2015-02-26 10:27               ` Alexandre Courbot
2015-02-27 13:15                 ` Linus Walleij
2015-02-27 13:19                   ` folkert
2015-03-02  6:20                     ` Alexandre Courbot
2015-03-02  6:16                   ` Alexandre Courbot
2015-03-02  7:27                     ` Michael Welling
2015-03-03  8:27                       ` Alexandre Courbot
2015-03-03 10:31                         ` Linus Walleij
2015-03-04 12:43                           ` Alexandre Courbot
2015-03-09 15:52                             ` Linus Walleij
2015-03-09 19:02                               ` folkert
2015-03-09 20:22                               ` Michael Welling [this message]
2015-03-17 16:39                                 ` Linus Walleij
2015-03-17 16:47                                   ` Michael Welling
2015-03-19  8:30                                     ` Linus Walleij
2015-02-26 10:29             ` Alexandre Courbot

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=20150309202258.GA3398@deathray \
    --to=mwelling@ieee.org \
    --cc=folkert@vanheusden.com \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@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.