linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] gpio: remove gpiod_toggle_active_low()
@ 2023-09-13 11:49 Bartosz Golaszewski
  2023-09-13 11:49 ` [PATCH 1/5] gpiolib: provide gpiod_set_active_[low/high]() Bartosz Golaszewski
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Bartosz Golaszewski @ 2023-09-13 11:49 UTC (permalink / raw)
  To: Linus Walleij, Andy Shevchenko, Ulf Hansson, Paul Cercueil,
	Harvey Hunt, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Daniel Scally, Hans de Goede, Mark Gross,
	Heiner Kallweit
  Cc: linux-gpio, linux-kernel, linux-mmc, linux-mips, linux-mtd,
	platform-driver-x86, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

The semantics of gpiod_toggle_active_low() are just bad and in almost
all cases require users to check the current state anyway. Let's replace
it with something clearer and more useful.

For getting this upstream: I'm thinking that I should apply patch 1/5,
provide other subsystems with an immutable tag and then we can apply
patch 5/5 for the next release once first four are in master.

Bartosz Golaszewski (5):
  gpiolib: provide gpiod_set_active_[low/high]()
  mtd: rawnand: ingenic: use gpiod_set_active_high()
  mmc: slot-gpio: use gpiod_set_active_[low|high]()
  platform/x86: int3472/discrete: use gpiod_set_active_low()
  gpiolib: remove gpiod_toggle_active_low()

 drivers/gpio/gpiolib.c                        | 21 ++++++++++++++-----
 drivers/mmc/core/slot-gpio.c                  | 11 +++++-----
 .../mtd/nand/raw/ingenic/ingenic_nand_drv.c   |  5 ++---
 .../x86/intel/int3472/clk_and_regulator.c     |  2 +-
 drivers/platform/x86/intel/int3472/led.c      |  2 +-
 include/linux/gpio/consumer.h                 | 11 ++++++++--
 6 files changed, 34 insertions(+), 18 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-09-14 13:55 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-13 11:49 [PATCH 0/5] gpio: remove gpiod_toggle_active_low() Bartosz Golaszewski
2023-09-13 11:49 ` [PATCH 1/5] gpiolib: provide gpiod_set_active_[low/high]() Bartosz Golaszewski
2023-09-13 15:19   ` kernel test robot
2023-09-13 18:41   ` kernel test robot
2023-09-13 19:23   ` kernel test robot
2023-09-13 11:49 ` [PATCH 2/5] mtd: rawnand: ingenic: use gpiod_set_active_high() Bartosz Golaszewski
2023-09-13 12:01   ` Paul Cercueil
2023-09-13 15:37     ` Miquel Raynal
2023-09-13 20:05   ` Andy Shevchenko
2023-09-13 20:12     ` Linus Walleij
2023-09-13 20:23       ` Miquel Raynal
2023-09-14  7:02         ` Andy Shevchenko
2023-09-14  7:04           ` Andy Shevchenko
2023-09-14  8:30           ` Paul Cercueil
2023-09-14  9:30             ` Bartosz Golaszewski
2023-09-14 13:55               ` Linus Walleij
2023-09-13 11:49 ` [PATCH 3/5] mmc: slot-gpio: use gpiod_set_active_[low|high]() Bartosz Golaszewski
2023-09-13 12:24   ` Linus Walleij
2023-09-13 12:39     ` Bartosz Golaszewski
2023-09-14  8:31       ` Linus Walleij
2023-09-14  8:38         ` Linus Walleij
2023-09-13 11:50 ` [PATCH 4/5] platform/x86: int3472/discrete: use gpiod_set_active_low() Bartosz Golaszewski
2023-09-13 14:50   ` Hans de Goede
2023-09-13 11:50 ` [PATCH 5/5] gpiolib: remove gpiod_toggle_active_low() 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).