linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] Changing gpio_request() scheme
@ 2014-01-29 16:11 Jean-Jacques Hiblot
  2014-01-29 16:11 ` [RFC 1/2] gpio: make the GPIOs shareable Jean-Jacques Hiblot
  2014-01-29 16:11 ` [RFC 2/2] gpio_keys: updated the gpio_key driver to use the gpio descriptors instead ot the integer namespace Jean-Jacques Hiblot
  0 siblings, 2 replies; 9+ messages in thread
From: Jean-Jacques Hiblot @ 2014-01-29 16:11 UTC (permalink / raw)
  To: linus.walleij, gnurou, linux-gpio; +Cc: Jean-Jacques Hiblot

Hi Linus, Alexandre,

Here is an attempt at solving some of the issues appearing when a gpio is used
in different parts of the kernel. This was triggered by the recent discussion we
had on the need to request a gpio used as an interrupt and the fact that it
would make its value unavailable for other use.
The main idea behind the new scheme is that an input can safely be shared among
multiple users (one writer, multiple reader). 

The first patch is a draft implementation of the new request scheme. The 2nd
patch is an adaptation of the gpio_keys driver to test it.

Jean-Jacques

Jean-Jacques Hiblot (2):
  gpio: make the GPIOs shareable
  gpio_keys: updated the gpio_key driver to use the gpio descriptors
    instead ot the integer namespace.

 drivers/gpio/gpiolib-acpi.c        |   8 +-
 drivers/gpio/gpiolib-of.c          |   8 +-
 drivers/gpio/gpiolib.c             | 844 ++++++++++++++++++++++---------------
 drivers/input/keyboard/gpio_keys.c |  44 +-
 include/asm-generic/gpio.h         |  30 +-
 include/linux/acpi_gpio.h          |   8 +-
 include/linux/gpio.h               |   6 +
 include/linux/gpio/consumer.h      |  40 +-
 include/linux/gpio/driver.h        |   8 +-
 include/linux/gpio_keys.h          |   3 +-
 include/linux/of_gpio.h            |  13 +-
 11 files changed, 608 insertions(+), 404 deletions(-)

-- 
1.8.5.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-02-06 17:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-29 16:11 [RFC 0/2] Changing gpio_request() scheme Jean-Jacques Hiblot
2014-01-29 16:11 ` [RFC 1/2] gpio: make the GPIOs shareable Jean-Jacques Hiblot
2014-02-03  9:27   ` Alexandre Courbot
     [not found]     ` <CACh+v5N51NztnBqPnyYc3PzjkxBv12cB3AEL0m8G3sAObRib2w@mail.gmail.com>
2014-02-03 17:06       ` Fwd: " Jean-Jacques Hiblot
2014-02-06 13:23       ` Alexandre Courbot
2014-02-06 13:27         ` Alexandre Courbot
2014-02-06 14:27         ` Jean-Jacques Hiblot
2014-02-06 15:32         ` Jean-Jacques Hiblot
2014-01-29 16:11 ` [RFC 2/2] gpio_keys: updated the gpio_key driver to use the gpio descriptors instead ot the integer namespace Jean-Jacques Hiblot

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).