linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] gpio: deprecate and track the removal of GPIO workarounds for regulators
@ 2025-04-01 12:46 Bartosz Golaszewski
  2025-04-01 12:46 ` [PATCH v2 1/4] gpio: deprecate the GPIOD_FLAGS_BIT_NONEXCLUSIVE flag Bartosz Golaszewski
                   ` (5 more replies)
  0 siblings, 6 replies; 23+ messages in thread
From: Bartosz Golaszewski @ 2025-04-01 12:46 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Mark Brown
  Cc: linux-gpio, linux-kernel, Bartosz Golaszewski

The GPIOD_FLAGS_BIT_NONEXCLUSIVE flag and devm_gpiod_unhinge() helpers
were introduced as hacky workarounds for resource ownership issues in the
regulator subsystem. Unfortunately, people started using the former in
other places too and now it's in all kinds of drivers.

Let's deprecate both symbols officially, add them to the MAINTAINERS
keywords so that it pops up on our radars when used again, add a task to
track it and I plan to use the power sequencing subsystem to handle the
cases where non-exclusive access to GPIOs is required.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Changes in v2:
- reword the task description to focus more on the solution than the
  problem description
- add a task for removing devm_gpiod_unhinge() as well
- Link to v1: https://lore.kernel.org/r/20250331-gpio-todo-remove-nonexclusive-v1-0-25f72675f304@linaro.org

---
Bartosz Golaszewski (4):
      gpio: deprecate the GPIOD_FLAGS_BIT_NONEXCLUSIVE flag
      gpio: deprecate devm_gpiod_unhinge()
      MAINTAINERS: add more keywords for the GPIO subsystem entry
      gpio: TODO: track the removal of regulator-related workarounds

 MAINTAINERS                   |  2 ++
 drivers/gpio/TODO             | 34 ++++++++++++++++++++++++++++++++++
 drivers/gpio/gpiolib-devres.c |  6 +++++-
 include/linux/gpio/consumer.h |  1 +
 4 files changed, 42 insertions(+), 1 deletion(-)
---
base-commit: 405e2241def89c88f008dcb899eb5b6d4be8b43c
change-id: 20250331-gpio-todo-remove-nonexclusive-ed875467eb56

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


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

end of thread, other threads:[~2025-04-23 12:20 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 12:46 [PATCH v2 0/4] gpio: deprecate and track the removal of GPIO workarounds for regulators Bartosz Golaszewski
2025-04-01 12:46 ` [PATCH v2 1/4] gpio: deprecate the GPIOD_FLAGS_BIT_NONEXCLUSIVE flag Bartosz Golaszewski
2025-04-01 12:46 ` [PATCH v2 2/4] gpio: deprecate devm_gpiod_unhinge() Bartosz Golaszewski
2025-04-15  7:55   ` Linus Walleij
2025-04-01 12:46 ` [PATCH v2 3/4] MAINTAINERS: add more keywords for the GPIO subsystem entry Bartosz Golaszewski
2025-04-01 12:46 ` [PATCH v2 4/4] gpio: TODO: track the removal of regulator-related workarounds Bartosz Golaszewski
2025-04-01 13:27 ` [PATCH v2 0/4] gpio: deprecate and track the removal of GPIO workarounds for regulators Mark Brown
2025-04-01 14:42   ` Bartosz Golaszewski
2025-04-01 16:00     ` Mark Brown
2025-04-01 18:57       ` Bartosz Golaszewski
2025-04-01 21:55         ` Mark Brown
2025-04-02 10:05           ` Bartosz Golaszewski
2025-04-02 14:08             ` Mark Brown
2025-04-07 13:15               ` Bartosz Golaszewski
2025-04-07 13:24                 ` Mark Brown
2025-04-07 13:29                   ` Bartosz Golaszewski
2025-04-07 13:33                     ` Mark Brown
2025-04-07 13:52                       ` Mark Brown
2025-04-15 21:32             ` Linus Walleij
2025-04-17 18:57               ` Bartosz Golaszewski
2025-04-22 12:04                 ` Linus Walleij
2025-04-23 12:20                   ` Bartosz Golaszewski
2025-04-08  8:43 ` Bartosz Golaszewski

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