From: Bartosz Golaszewski <brgl@bgdev.pl>
To: Gilles BULOZ <gilles.buloz@kontron.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [questions] : gpiolib and gpioset behaviour
Date: Mon, 22 Apr 2024 20:04:29 +0200 [thread overview]
Message-ID: <CAMRc=MdeCYS=mbn8_ek8bLDyy0R08pTCVyTgi72JwtJTyszgQA@mail.gmail.com> (raw)
In-Reply-To: <04e6ac4e-0178-c910-2dcd-45a726f75c0d@kontron.com>
On Mon, Apr 22, 2024 at 6:49 PM Gilles BULOZ <gilles.buloz@kontron.com> wrote:
>
> On Mon, Apr 22, 2024 at 3:55 PM Bartosz Golaszewski wrote :
> >
> > This behavior is driver-specific. Meaning: you're in-kernel GPIO
> > driver may actually retain the state.
> >
>
> Which method should the driver implement to restore the state on GPIO when the
> last process referencing the character device exits ?
>
The free callback in struct gpio_chip.
Bart
next prev parent reply other threads:[~2024-04-22 18:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-22 12:44 [questions] : gpiolib and gpioset behaviour Gilles BULOZ
2024-04-22 15:55 ` Bartosz Golaszewski
2024-04-22 16:49 ` Gilles BULOZ
2024-04-22 18:04 ` Bartosz Golaszewski [this message]
2024-04-26 2:07 ` Kent Gibson
2024-04-26 13:08 ` Gilles BULOZ
2024-04-26 13:37 ` Kent Gibson
2024-04-26 16:16 ` Gilles BULOZ
2024-04-27 0:23 ` Kent Gibson
2024-04-27 12:09 ` Kent Gibson
2024-04-29 8:50 ` Gilles BULOZ
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='CAMRc=MdeCYS=mbn8_ek8bLDyy0R08pTCVyTgi72JwtJTyszgQA@mail.gmail.com' \
--to=brgl@bgdev.pl \
--cc=gilles.buloz@kontron.com \
--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 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).