linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] gpio: aggregator: Incorporate gpio-delay functionality
@ 2023-06-14 23:14 Andy Shevchenko
  2023-06-14 23:14 ` [PATCH v2 1/4] gpio: aggregator: Remove CONFIG_OF and of_match_ptr() protections Andy Shevchenko
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Andy Shevchenko @ 2023-06-14 23:14 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andy Shevchenko, Alexander Stein,
	linux-kernel, linux-gpio
  Cc: Linus Walleij, Bartosz Golaszewski, Andy Shevchenko,
	Geert Uytterhoeven

The newly appeared gpio-delay module enables external signal delay lines
that may be connected to the GPIOs. But at the same time it copies the
GPIO forwarder functionality. Besides that the approach does not scale.
If we would have another external component, we would need yet another
driver. That's why I think, and seems others support me, better to
enable such a functionality inside GPIO aggregator driver.

Patch 1 is a cleanup that may be applied independently on the decision
about the rest.

Please, test and comment!

In v2:
- split as a series
- covered CONFIG_OF_GPIO=n case
- removed the gpio-delay
- moved gpio-delay Kconfig help to the comment in the code

Not in v2:
- updated DT description to note about long timeouts in atomic mode
- sysfs hiding for gpio-delay functionality
- used msleep(): the documentation is _against_ this

Andy Shevchenko (4):
  gpio: aggregator: Remove CONFIG_OF and of_match_ptr() protections
  gpio: aggregator: Support delay for setting up individual GPIOs
  gpio: aggregator: Set up a parser of delay line parameters
  gpio: delay: Remove duplicative functionality

 drivers/gpio/Kconfig           |   9 --
 drivers/gpio/Makefile          |   1 -
 drivers/gpio/gpio-aggregator.c | 109 ++++++++++++++++++++--
 drivers/gpio/gpio-delay.c      | 164 ---------------------------------
 4 files changed, 103 insertions(+), 180 deletions(-)
 delete mode 100644 drivers/gpio/gpio-delay.c

-- 
2.40.0.1.gaa8946217a0b


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

end of thread, other threads:[~2023-06-15  9:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-14 23:14 [PATCH v2 0/4] gpio: aggregator: Incorporate gpio-delay functionality Andy Shevchenko
2023-06-14 23:14 ` [PATCH v2 1/4] gpio: aggregator: Remove CONFIG_OF and of_match_ptr() protections Andy Shevchenko
2023-06-15  6:34   ` Linus Walleij
2023-06-15  7:28   ` Geert Uytterhoeven
2023-06-14 23:14 ` [PATCH v2 2/4] gpio: aggregator: Support delay for setting up individual GPIOs Andy Shevchenko
2023-06-15  6:35   ` Linus Walleij
2023-06-15  7:42   ` Geert Uytterhoeven
2023-06-14 23:14 ` [PATCH v2 3/4] gpio: aggregator: Set up a parser of delay line parameters Andy Shevchenko
2023-06-15  6:37   ` Linus Walleij
2023-06-15  8:52     ` Andy Shevchenko
2023-06-15  7:48   ` Geert Uytterhoeven
2023-06-15  9:07     ` Andy Shevchenko
2023-06-14 23:14 ` [PATCH v2 4/4] gpio: delay: Remove duplicative functionality Andy Shevchenko
2023-06-15  6:38   ` Linus Walleij
2023-06-15  7:49   ` Geert Uytterhoeven
2023-06-15  9:10 ` [PATCH v2 0/4] gpio: aggregator: Incorporate gpio-delay functionality Andy Shevchenko

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