Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1607842
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v1 0/8] gpio: acpi: Make it working |
| Date | 2017-03-23 20:50 +0100 |
| Message-ID | <togU9-6WV-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Currently GPIO ACPI library provides an API to get a GPIO resources (IO or interrupt) from ACPI tables for the individual drivers. This library has few flaws which makes some devices not working: - the library allows to abuse ACPI by using a _CRS fallback mechanism - the library neglects flags of the resource In this series: - the _CRS fallback is forbidden - the pin configuration follows what firmware wants to - the documentation is updated in order to clarify corner cases After this series it's possible to use GPIO pins for input (interrupt) which were configured as output by BIOS by some reason. It's a crucial functionality for IoT open connected boards where user may choose any of available pin for almost any of available function, including GPIO input (interrupt). Current bad behaviour was first reported by Jarkko Nikula few months ago. Andy Shevchenko (8): gpiolib: Export gpiod_configure_flags() to internal users gpio: acpi: Align acpi_find_gpio() with DT version gpio: acpi: Do sanity check for GpioInt in acpi_find_gpio() gpio: acpi: Even more tighten up ACPI GPIO lookups gpio: acpi: Synchronize acpi_find_gpio() and acpi_gpio_count() gpio: acpi: Explain how to get GPIO descriptors in ACPI case gpio: acpi: Factor out acpi_gpio_to_gpiod_flags() helper gpio: acpi: Override GPIO initialization flags Documentation/acpi/gpio-properties.txt | 60 ++++++++++++ drivers/gpio/gpiolib-acpi.c | 162 +++++++++++++++++++-------------- drivers/gpio/gpiolib.c | 10 +- drivers/gpio/gpiolib.h | 17 +++- 4 files changed, 176 insertions(+), 73 deletions(-) -- 2.11.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v1 0/8] gpio: acpi: Make it working Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-23 20:50 +0100
[PATCH v1 3/8] gpio: acpi: Do sanity check for GpioInt in acpi_find_gpio() Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-23 20:50 +0100
Re: [PATCH v1 3/8] gpio: acpi: Do sanity check for GpioInt in acpi_find_gpio() Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-03-23 21:30 +0100
[PATCH v1 4/8] gpio: acpi: Even more tighten up ACPI GPIO lookups Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-23 20:50 +0100
Re: [PATCH v1 4/8] gpio: acpi: Even more tighten up ACPI GPIO lookups Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-03-23 21:20 +0100
Re: [PATCH v1 4/8] gpio: acpi: Even more tighten up ACPI GPIO lookups Bastien Nocera <hadess@hadess.net> - 2017-03-24 11:50 +0100
[PATCH v1 2/8] gpio: acpi: Align acpi_find_gpio() with DT version Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-23 20:50 +0100
Re: [PATCH v1 2/8] gpio: acpi: Align acpi_find_gpio() with DT version Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-03-23 21:20 +0100
[PATCH v1 6/8] gpio: acpi: Explain how to get GPIO descriptors in ACPI case Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-23 20:50 +0100
Re: [PATCH v1 6/8] gpio: acpi: Explain how to get GPIO descriptors in ACPI case Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-03-23 21:30 +0100
[PATCH v1 5/8] gpio: acpi: Synchronize acpi_find_gpio() and acpi_gpio_count() Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-23 20:50 +0100
Re: [PATCH v1 5/8] gpio: acpi: Synchronize acpi_find_gpio() and acpi_gpio_count() Mika Westerberg <mika.westerberg@linux.intel.com> - 2017-03-24 17:00 +0100
[PATCH v1 8/8] gpio: acpi: Override GPIO initialization flags Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-23 20:50 +0100
Re: [PATCH v1 0/8] gpio: acpi: Make it working Jarkko Nikula <jarkko.nikula@linux.intel.com> - 2017-03-24 15:00 +0100
Re: [PATCH v1 0/8] gpio: acpi: Make it working Mika Westerberg <mika.westerberg@linux.intel.com> - 2017-03-24 17:10 +0100
csiph-web