linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kent Gibson <warthog618@gmail.com>
To: Seamus de Mora <seamusdemora@gmail.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [libgpiod] Some thoughts following a brief test of libgpiod ver 2.1
Date: Thu, 4 Jan 2024 07:25:14 +0800	[thread overview]
Message-ID: <20240103232514.GA3339@rigel> (raw)
In-Reply-To: <CAJ8C1XPe5nG30O89AVboZa=iqRu=-4=jNtuWj3v6KY921kfq8w@mail.gmail.com>

On Wed, Jan 03, 2024 at 01:47:54PM -0600, Seamus de Mora wrote:
> On Wed, Jan 3, 2024 at 3:49 AM Kent Gibson <warthog618@gmail.com> wrote:
> >
> > On Wed, Jan 03, 2024 at 01:51:53AM -0600, Seamus de Mora wrote:
> > > On Thu, Dec 28, 2023 at 3:29 AM Kent Gibson <warthog618@gmail.com> wrote:
> > > >
>
> > But to reiterate; gpioset v1 exited immediately and that caused
> > confusion when the driver would revert the line to its default state.
> > That made it look like gpoioset wasn't doing anything or was generating
> > a glitch.
> > That results in "gpioset doesn't work" bug reports, and we got tired of
> > that.
> > The decision was to make it block by default to make it clearer that you
> > lose control over the line when it exits.
> >
> > In short, we changed it because people complained about it, either
> > explicitly or implicitly.
> >
> > The -t0 option can be used to emulate the v1 behaviour.
>
> But... you've also explained that libgpiod/gpioset's
> default/proper/correct behavior is to delegate the persistence issue
> to the driver (or pinctrl in the RPi case) - right?
>
> So it **sounds like** what you are saying is this:
>
>     gpioset does *not exit* because people complained about lack of
>     persistence. When the persistence issue was fixed in the driver,
>     we also fixed it in gpioset by not allowing it to exit.
>
> Have I got that right??
>
> If so, why not stick by your initial assertion that persistence is a
> driver issue - not a libgpiod issue?
>
> I won't make a recommendation - or tell you what I *think/feel* -
> because I know "you don't care", but if this is the case...
>

The behaviour was changed in A driver, and as noted by Stefan even that
is in the vendor tree, not the mainline tree.

Your perspective is too narrow - we need to deal with the general case.

Cheers,
Kent.

  reply	other threads:[~2024-01-03 23:25 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-28  1:19 Some thoughts following a brief test of libgpiod ver 2.1 Seamus de Mora
2023-12-28  9:29 ` [libgpiod] " Kent Gibson
2023-12-29  1:01   ` Seamus de Mora
2023-12-29  1:32     ` Kent Gibson
2023-12-29  1:41       ` Seamus de Mora
2023-12-29  2:04         ` Kent Gibson
2024-01-03  7:51   ` Seamus de Mora
2024-01-03  9:49     ` Kent Gibson
2024-01-03 19:47       ` Seamus de Mora
2024-01-03 23:25         ` Kent Gibson [this message]
2024-01-03 23:46           ` Seamus de Mora
2024-01-03 19:30   ` Stefan Wahren
2024-01-03 10:47 ` Bartosz Golaszewski
2024-01-03 17:52   ` Seamus de Mora
2024-01-03 18:35     ` Bartosz Golaszewski
2024-01-03 22:09       ` Seamus de Mora
2024-01-04  0:15         ` Kent Gibson
2024-01-04  3:22           ` Seamus de Mora
2024-01-04  4:43             ` Kent Gibson

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=20240103232514.GA3339@rigel \
    --to=warthog618@gmail.com \
    --cc=linux-gpio@vger.kernel.org \
    --cc=seamusdemora@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;
as well as URLs for NNTP newsgroup(s).