linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] gpio: introduce hog properties with less ambiguity
@ 2023-05-30 15:19 Uwe Kleine-König
  2023-05-30 15:19 ` [PATCH v2 1/2] dt-bindings: " Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Uwe Kleine-König @ 2023-05-30 15:19 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-gpio, devicetree, kernel, Andy Shevchenko, Kent Gibson

Hello,

this is another approach after
https://lore.kernel.org/linux-gpio/20210503210526.43455-1-u.kleine-koenig@pengutronix.de
two years ago. I switched back to "active" and "inactive" from
"asserted" and "deasserted". The poll about the naming is ambigous, but
I think with a slight preference of active/inactive over
asserted/deasserted (with my unbiased self preferring active/inactive,
too :-)

Rob Herring acked patch #1 and Linus Walleij acked patch #2 of the
asserted/deasserted variant back then, I dropped these as the change is
too relevant IMHO.

In the previous post I had some inconsistencies that should be gone now.

And Andy wrote:
> I like the idea (with active-inactive terms), but...
> 
> It’s a half baked solution. Please use fwnode to cover all possible
> providers.

which I didn't address because I want to change what is currently
supported and not introduce new support. Adding fwnode is orthogonal to
this renaming. I didn't find any other more general implementation that
would affect more than "of" for output-high and output-low. Please tell me
if I missed something.

Best regards
Uwe

Uwe Kleine-König (2):
  dt-bindings: gpio: introduce hog properties with less ambiguity
  gpio: use "active" and "inactive" instead of "high" and "low" for output hogs

 Documentation/devicetree/bindings/gpio/gpio.txt | 16 +++++++++++-----
 drivers/gpio/gpiolib-of.c                       | 10 ++++++++--
 include/linux/gpio/consumer.h                   | 14 ++++++++++----
 3 files changed, 29 insertions(+), 11 deletions(-)


base-commit: 8c33787278ca8db73ad7d23f932c8c39b9f6e543
-- 
2.39.2


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

end of thread, other threads:[~2023-06-08  6:50 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-30 15:19 [PATCH v2 0/2] gpio: introduce hog properties with less ambiguity Uwe Kleine-König
2023-05-30 15:19 ` [PATCH v2 1/2] dt-bindings: " Uwe Kleine-König
2023-05-30 22:20   ` Conor Dooley
2023-05-31  7:03     ` Uwe Kleine-König
2023-05-31  9:37       ` Conor Dooley
2023-05-31  6:18   ` Alexander Stein
2023-05-31  7:01     ` Uwe Kleine-König
2023-06-08  6:50     ` Geert Uytterhoeven
2023-06-07 21:09   ` Rob Herring
2023-05-30 15:19 ` [PATCH v2 2/2] gpio: use "active" and "inactive" instead of "high" and "low" for output hogs Uwe Kleine-König
2023-05-30 21:51   ` Andy Shevchenko
2023-05-31  6:58     ` Uwe Kleine-König
2023-05-31  9:51       ` Andy Shevchenko
2023-05-31 10:06         ` Uwe Kleine-König
2023-05-31 12:21           ` Andy Shevchenko
2023-05-31 12:23             ` Andy Shevchenko
2023-05-30 15:51 ` [PATCH v2 0/2] gpio: introduce hog properties with less ambiguity Kent Gibson
2023-05-30 19:15   ` Bartosz Golaszewski
2023-05-31  0:55     ` Kent Gibson
2023-05-31  8:15       ` 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).