Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1249148

Re: [PATCH 1/2] gpiolib: Split GPIO flags parsing and GPIO configuration

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] gpiolib: Split GPIO flags parsing and GPIO configuration
Date 2015-10-16 22:50 +0200
Message-ID <qkk6S-IR-9@gated-at.bofh.it> (permalink)
References <qiSPn-2Lm-9@gated-at.bofh.it> <qiSPp-2Lm-47@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Oct 12, 2015 at 11:20 PM, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:

> When requesting a GPIO through the legacy or the gpiod_* API the
> gpiochip request operation is first called and then the GPIO flags are
> parsed and the GPIO is configured. This prevents the gpiochip from
> rejecting the request if the flags are not supported by the device.
>
> To fix this split the parse-and-configure operation in two and parse
> flags before requesting the GPIO.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Very elegant, this is exactly how we need things to happen.
Patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] gpiolib: Split GPIO flags parsing and GPIO configuration Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2015-10-12 23:30 +0200
  Re: [PATCH 1/2] gpiolib: Split GPIO flags parsing and GPIO configuration Linus Walleij <linus.walleij@linaro.org> - 2015-10-16 22:50 +0200

csiph-web