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: Fri, 29 Dec 2023 09:32:48 +0800 [thread overview]
Message-ID: <20231229013248.GA10291@rigel> (raw)
In-Reply-To: <CAJ8C1XNXSHXpRcsBWJmrGRa2dg2VxBVo1BG6KC8mio7keYy_tg@mail.gmail.com>
On Thu, Dec 28, 2023 at 07:01:10PM -0600, Seamus de Mora wrote:
> On Thu, Dec 28, 2023 at 3:29 AM Kent Gibson <warthog618@gmail.com> wrote:
> >
> > On Wed, Dec 27, 2023 at 07:19:54PM -0600, Seamus de Mora wrote:
> > > Hello,
>
> Thanks for your response, Kent... but really - there's no need for a
> supercilious remark like "hope you feel better soon"; you could
> improve your communications if you'd drop remarks like that.
>
I am well aware but sometimes you need to compromise and work with what
you've got, and given the mail I was responding to your comment is a bit
rich.
Happy to give it but not take it?
> Anyway - I'm still wrestling with the "persistence" thing, but you've
> made some good points. The view is still a bit hazy, but perhaps I'm
> seeing the "bigger picture" now? And I finally got around to reading
> your post on SE; I made a comment & asked another Q.
>
> One thing I'll comment on now is wrt the 'gpioget' tool, and the '-a'
> option. If you want to create a tool, and call it 'gpioget' my feeling
> is that a **read only** behavior should be the default. I'd recommend
> you consider making that the case, and use the '-a' option to mean
> "adjust" :)
>
That is your view, and I don't care about your feelings ;-).
If the line is already an input then it is a read-only operation.
Another view though is "I wanted to read the line as an input, so why
do I need to provide an option just to ensure it is configured
as an input?"
That was the default for v1 and there was no feedback requesting to
change it for v2. And, depending on your views on API stability, that
means it can't be changed until libgpiod v3.
If that doesn't suit you, try an alias?
> I'll follow up on the persistence business later, but just in case you
> can't be bothered reading my comment to your SE post, let me re-state
> the question I posed there:
>
Perhaps improve your communication skills, or can't you be bothered??
> I skimmed through your reference to the [GPIO chardev
> uAPI](https://github.com/raspberrypi/linux/blob/rpi-6.1.y/include/uapi/linux/gpio.h).
> I noted that there are several deprecated 'struct's in that API that
> were part of ABI v1. QUESTION: Are these deprecated 'struct's used by
> the `libgpiod v1.6.2/.3` - i.e. the libgpiod that is now current in
> RPi bullseye (1.6.2) & bookworm (1.6.3)?
>
I've already responded there, but to reiterate, the deprecated v1
structs and uAPI remains until the transisition to v2 is complete.
If you are using the v1 uAPI then you are using those.
You can still use them for the time being, but new developments should
use v2 and existing v1 users should migrate to v2 at their earliest
convenience.
The kernel can be built with support for both in the meantime, though
v1 can also be compiled out if you are building a custom kernel and are
sure you don't need v1. That will probably change to be the default
sometime next year.
Cheers,
Kent.
next prev parent reply other threads:[~2023-12-29 1:32 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 [this message]
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
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=20231229013248.GA10291@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).