gpio: acpi: Make it working
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 18 repliesIn review
- v18 patches 18 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | gpiolib: Export gpiod_configure_flags() to internal usersdrivers/ drivers/ | +3 | 1 reply | |
| 2/12 | gpio: acpi: Align acpi_find_gpio() with DT versiondrivers/ | +2 | 1 reply | |
| 3/12 | gpio: acpi: Do sanity check for GpioInt in acpi_find_gpio()drivers/ | +5 | 1 reply | |
| 4/12 | gpio: acpi: Even more tighten up ACPI GPIO lookupsdrivers/ | +1 | 1 reply | |
| 5/12 | gpio: acpi: Synchronize acpi_find_gpio() and acpi_gpio_count()drivers/ | +3 | 1 reply | |
| 6/12 | gpio: acpi: Explain how to get GPIO descriptors in ACPI caseDocumentation/ | +65 | 1 reply | |
| 7/12 | gpio: acpi: Factor out acpi_gpio_to_gpiod_flags() helperdrivers/ | +36 | 1 reply | |
| 8/12 | gpio: acpi: Override GPIO initialization flagsdrivers/ drivers/ drivers/ | +67 | 1 reply | |
| 9/12 | gpio: acpi: Split out acpi_gpio_get_irq_resource() helperdrivers/ include/ | +25 | 2 replies | |
| 10/12 | PNP / ACPI: add support for GpioInt resource typedrivers/ | +15 | 2 replies | |
| 11/12 | PNP / ACPI: join strings back for better maintenancedrivers/ | +9 | 2 replies | |
| 12/12 | PNP / ACPI: remove FSF addressdrivers/ | +0 | 2 replies |
Reviews trailers per patch
All 12 patches have a Reviewed-by or Acked-by.
| Patch | Jarkko Nikula | Mika Westerberg | Dmitry Torokhov |
|---|---|---|---|
| 1/12 | T-b | R-b | |
| 2/12 | T-b | R-b | R-b |
| 3/12 | T-b | R-b | R-b |
| 4/12 | T-b | R-b | |
| 5/12 | T-b | R-b | |
| 6/12 | T-b | R-b | |
| 7/12 | T-b | R-b | |
| 8/12 | T-b | R-b | |
| 9/12 | R-b | ||
| 10/12 | R-b | ||
| 11/12 | R-b | ||
| 12/12 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v2 00/12] gpio: acpi: Make it working
This is second iteration of the fix of GPIO ACPI library to make it robust against different ACPI specification generations and thus firmwares.
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
- the PNP ACPI is not ready for GpioInt() resources for interrupts
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
- the PNP ACPI is extended to support GpioInt() for interrupts
After this series it's possible to use GPIO pins for input (interrupt) which were set as output due to HW reset default is input buffer disabled and BIOS didn't touch that pin at all. It's a crucial functionality for Internet of Things (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.
Jagadish, it would be nice if you can re-test entire series in your environment and give a Tested-by tag.
In v2:
- add 4 patches to fix an issue with device that takes GpioInt resource
- amend documentation
- fix several spelling typos
- add Mika's and Jarkko's tags
- rebase on top of recent linux-next
Andy Shevchenko (11):
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
gpio: acpi: Split out acpi_gpio_get_irq_resource() helper PNP / ACPI: join strings back for better maintenance PNP / ACPI: remove FSF address
Jagadish Krishnamoorthy (1):
PNP / ACPI: add support for GpioInt resource type
Documentation/acpi/gpio-properties.txt | 65 ++++++++++++ drivers/gpio/gpiolib-acpi.c | 185 ++++++++++++++++++++------------- drivers/gpio/gpiolib.c | 10 +- drivers/gpio/gpiolib.h | 17 ++- drivers/pnp/pnpacpi/rsparser.c | 37 ++++--- include/linux/acpi.h | 7 ++ 6 files changed, 230 insertions(+), 91 deletions(-)
Signature · 1 line
2.11.0