Skip to content

gpiolib: switch to fwnode in the core

Andy Shevchenko linux-acpi linux-doc linux-gpio lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 3 repliesIn review
  2. v56 patches 5 repliesSuperseded
  3. v35 patches 13 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v25 patches5 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6irqdomain: Introduce irq_domain_create_simple() APIDocumentation/core-api/irq/irq-domain.rst include/linux/irqdomain.h kernel/irq/irqdomain.c+36 -250 replies
2/6gpiolib: Unify the checks on fwnode typedrivers/gpio/gpiolib.c+13 -150 replies
3/6gpiolib: Move of_node operations to gpiolib-of and correct fwnode usedrivers/gpio/gpiolib-of.c drivers/gpio/gpiolib.c+8 -70 replies
4/6gpiolib: Introduce acpi_gpio_dev_init() and call it from coredrivers/gpio/gpiolib-acpi.c drivers/gpio/gpiolib-acpi.h drivers/gpio/gpiolib.c+12 -00 replies
5/6gpiolib: Reuse device's fwnode to create IRQ domaindrivers/gpio/gpiolib.c+4 -110 replies
6/6gpiolib: Fold conditionals into a simple ternary operatordrivers/gpio/gpiolib.c+2 -72 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchLinus WalleijMarc ZyngierRafael J. Wysocki
1/6A-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b 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.

Read the v6 thread

Cover letter [PATCH v6 0/6] gpiolib: switch to fwnode in the core

GPIO library uses of_node and fwnode in the core in non-unified way. The series cleans this up and improves IRQ domain creation for non-OF cases where currently the names of the domain are 'unknown'.

This has been tested on Intel Galileo Gen 2.

It touches GPIO core parts and it's expected that the series is routed via GPIO tree.

In v6:
- added tag to the patch 5 (Rafael)
- dropped ops temporary variable (Rafael)

In v5:
- same as v4 + v3 (patches 1-4/5) in order to route via GPIO tree (Bart)

In v4:
- based on Rafael's bleeding-edge
- split the rest to two patches (Rafael)
- elaborate WARN() deduplication in the commit message (Rafael)

In v3:
- fixed subtle bug in gpiod_count
- made irq_domain_add_simple() static inline (Marc)

In v2:
- added a new patch due to functionality in irq_comain_add_simple() (Linus)
- tagged patches 2-4 (Linus)
- Cc'ed to Rafael

Andy Shevchenko (6):
irqdomain: Introduce irq_domain_create_simple() API
gpiolib: Unify the checks on fwnode type
gpiolib: Move of_node operations to gpiolib-of and correct fwnode use
gpiolib: Introduce acpi_gpio_dev_init() and call it from core
gpiolib: Reuse device's fwnode to create IRQ domain
gpiolib: Fold conditionals into a simple ternary operator

 Documentation/core-api/irq/irq-domain.rst | 22 ++++----
 drivers/gpio/gpiolib-acpi.c               |  7 +++
 drivers/gpio/gpiolib-acpi.h               |  4 ++
 drivers/gpio/gpiolib-of.c                 |  6 ++-
 drivers/gpio/gpiolib.c                    | 62 +++++++++--------------
 include/linux/irqdomain.h                 | 19 +++++--
 kernel/irq/irqdomain.c                    | 20 ++++----
 7 files changed, 75 insertions(+), 65 deletions(-)
Signature · 1 line
2.30.1