From: Kent Gibson <warthog618@gmail.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Bamvor Jian Zhang <bamv2005@gmail.com>,
Drew Fustini <drew@pdp7.com>
Subject: Re: [PATCH 0/5] gpio: expose pull-up/pull-down line flags to userspace
Date: Sat, 12 Oct 2019 08:53:40 +0800 [thread overview]
Message-ID: <20191012005340.GA4059@sol> (raw)
In-Reply-To: <CAMRc=Mfkop3poFn7vaotxZfCJn=L+6w9uzNVCXTfa4AuVEmm1g@mail.gmail.com>
On Fri, Oct 11, 2019 at 07:51:43PM +0200, Bartosz Golaszewski wrote:
> pt., 11 paź 2019 o 17:47 Kent Gibson <warthog618@gmail.com> napisał(a):
> >
> > This series adds gross control of pull-up/pull-down to the GPIO uAPI.
> > Gross control means enabling and disabling of bias functionality,
> > not finer grained control such as setting biasing impedances.
> >
> > The support allows both input and output lines to have any one of the
> > following biases applied as part of the line handle or event request:
> > 0. As Is - bias is left alone. This is the default for ABI compatibility.
> > 1. Pull Up - pull-up bias is enabled.
> > 2. Pull Down - pull-down bias is enabled.
> > 3. Pull None - bias is explicitly disabled.
> >
> > The biases are encoded in two flags, PULL_UP and PULL_DOWN, where
> > setting both is interpreted as Pull None. So the flags effectively form
> > a two bit field encoding the values above.
> >
> > The setting of biases on output lines may seem odd, but is to allow for
> > utilisation of internal pull-up/pull-down on open drain and open source
> > outputs, where supported in hardware.
> >
> > Patches are against:
> > github.com/brgl/linux/commit/82fc38f6ab599ee03f7a8ed078de8abb41e6e611
> > which contains the initial patch from Drew Fustini, with Bartosz Golaszewski,
> > that adds support for pull-up/down flags in line handle requests.
> >
> > Patch 1 adds support to line event requests.
> > Patch 2 adds pull-up/down support to the gpio-mockup for uAPI testing.
> > Patch 3 rejects biasing changes to lines requested as-is.
> > Patch 4 adds support for disabling bias (pull none).
> > Patch 5 adds support for setting bias on output lines.
> >
> > Kent Gibson (5):
> > gpiolib: add support for pull up/down to lineevent_create
> > gpio: mockup: add set_config to support pull up/down
> > gpiolib: pull requires explicit input mode
> > gpiolib: disable bias on inputs when pull up/down are both set
> > gpiolib: allow pull up/down on outputs
> >
> > drivers/gpio/gpio-mockup.c | 94 ++++++++++++++++++++++++--------------
> > drivers/gpio/gpiolib.c | 55 ++++++++++++++++------
> > 2 files changed, 100 insertions(+), 49 deletions(-)
> >
> > --
> > 2.23.0
> >
>
> Hi Kent,
>
> thanks for doing that, but please make it easier to review. The cover
> letter shouldn't be sent in response to this thread but be part of the
> patch series.
Not sure what you mean - this is a new thread.
Should the updated series be a reply to this email (yours), or a new
v2 thread?
> Please don't rebase the patches on top of my
> development/experimental branch - every patch needs to spend some time
> on the mailing list. Rebase the series on top of the latest mainline
> release candidate. Pull in Drew's changes and just squash my code into
> your patches - it was not finished anyway. You can send patches from
> other developers or make them part of your series - there's no problem
> with that as long as you keep the authorship.
>
> That'll make it much easier to review and understand.
>
Fair enough. I was unsure about including others' patches in the
series, so kept it minimal. Will update the series as soon as I get the
chance (and know where to send it).
Cheers,
Kent.
next prev parent reply other threads:[~2019-10-12 0:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-11 15:46 [PATCH 0/5] gpio: expose pull-up/pull-down line flags to userspace Kent Gibson
2019-10-11 15:46 ` [PATCH 1/5] gpiolib: add support for pull up/down to lineevent_create Kent Gibson
2019-10-11 15:46 ` [PATCH 2/5] gpio: mockup: add set_config to support pull up/down Kent Gibson
2019-10-11 15:46 ` [PATCH 3/5] gpiolib: pull requires explicit input mode Kent Gibson
2019-10-11 15:46 ` [PATCH 4/5] gpiolib: disable bias on inputs when pull up/down are both set Kent Gibson
2019-10-11 15:46 ` [PATCH 5/5] gpiolib: allow pull up/down on outputs Kent Gibson
2019-10-11 17:51 ` [PATCH 0/5] gpio: expose pull-up/pull-down line flags to userspace Bartosz Golaszewski
2019-10-12 0:53 ` Kent Gibson [this message]
2019-10-12 5:52 ` Bartosz Golaszewski
2019-10-16 11:52 ` Linus Walleij
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=20191012005340.GA4059@sol \
--to=warthog618@gmail.com \
--cc=bamv2005@gmail.com \
--cc=brgl@bgdev.pl \
--cc=drew@pdp7.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 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).