The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mfd: ucb1x00: Convert Assabet gpio-keys to software nodes
@ 2026-07-07  5:01 Dmitry Torokhov
  2026-07-07  5:01 ` [PATCH v2 1/2] mfd: ucb1x00: Register software node for GPIO controller Dmitry Torokhov
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Dmitry Torokhov @ 2026-07-07  5:01 UTC (permalink / raw)
  To: Lee Jones, Arnd Bergmann, Bartosz Golaszewski; +Cc: mfd, linux-kernel

This patch series converts the legacy gpio-keys platform device on the
StrongARM SA-1100 Assabet evaluation board from platform data to software
nodes and device properties.

The first patch registers a shared software node for the UCB1x00 GPIO
controller in drivers/mfd/ucb1x00-core.c, attaching its firmware node
directly to the GPIO chip prior to registration. The second patch
converts the Assabet machine subdriver to define dynamically allocated
software nodes referencing the UCB1x00 GPIO controller directly, allowing
pin bindings to be resolved via the attached firmware node without relying
on name matching.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
Changes in v2:
- Export ucb1x00_gpiochip_node to fix link errors when built as module.
- Fix teardown order in core driver to avoid software node use-after-free.
- Convert Assabet subdriver to use dynamically allocated software nodes
  to avoid use-after-free on module unload.
- Factor out button node removal logic into a helper.
- Link to v1: https://patch.msgid.link/20260706-ucb1x00-assabet-swnode-v1-0-6102eabd31d0@gmail.com

---
Dmitry Torokhov (2):
      mfd: ucb1x00: Register software node for GPIO controller
      mfd: ucb1x00: Convert Assabet gpio-keys to use software nodes

 drivers/mfd/ucb1x00-assabet.c | 124 +++++++++++++++++++++++++++++++++---------
 drivers/mfd/ucb1x00-core.c    |  16 +++++-
 include/linux/mfd/ucb1x00.h   |   3 +
 3 files changed, 116 insertions(+), 27 deletions(-)
---
base-commit: 8e9685d3c41c35dd1b37df70d854137abcb2fbac
change-id: 20260705-ucb1x00-assabet-swnode-683cb383d398

Thanks.

-- 
Dmitry


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

end of thread, other threads:[~2026-07-16 15:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-07  5:01 [PATCH v2 0/2] mfd: ucb1x00: Convert Assabet gpio-keys to software nodes Dmitry Torokhov
2026-07-07  5:01 ` [PATCH v2 1/2] mfd: ucb1x00: Register software node for GPIO controller Dmitry Torokhov
2026-07-07 13:46   ` Arnd Bergmann
2026-07-16 12:40     ` Lee Jones
2026-07-16 13:05       ` Arnd Bergmann
2026-07-16 14:00         ` Lee Jones
2026-07-16 15:06           ` Dmitry Torokhov
2026-07-16 15:49             ` Lee Jones
2026-07-07  5:01 ` [PATCH v2 2/2] mfd: ucb1x00: Convert Assabet gpio-keys to use software nodes Dmitry Torokhov
2026-07-16 13:06   ` Lee Jones
2026-07-16 15:15     ` Dmitry Torokhov
2026-07-16 15:48       ` Lee Jones
2026-07-07  8:07 ` [PATCH v2 0/2] mfd: ucb1x00: Convert Assabet gpio-keys to " Bartosz Golaszewski
2026-07-16 15:49 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox