timestamp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] hte: tegra194: improve the GPIO-related comment
@ 2023-09-11  9:44 Bartosz Golaszewski
  2023-09-29 21:38 ` Dipen Patel
  0 siblings, 1 reply; 9+ messages in thread
From: Bartosz Golaszewski @ 2023-09-11  9:44 UTC (permalink / raw)
  To: Dipen Patel, Thierry Reding, Jonathan Hunter
  Cc: timestamp, linux-tegra, linux-kernel, Bartosz Golaszewski,
	Linus Walleij

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

Using any of the GPIO interfaces using the global numberspace is
deprecated. Make it clear in the comment.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
This was part of a wider series but since this is independent, I'm sending
it separately.

 drivers/hte/hte-tegra194.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c
index 6fe6897047ac..9fd3c00ff695 100644
--- a/drivers/hte/hte-tegra194.c
+++ b/drivers/hte/hte-tegra194.c
@@ -407,12 +407,15 @@ static int tegra_hte_line_xlate(struct hte_chip *gc,
 		return -EINVAL;
 
 	/*
+	 * GPIO consumers can access GPIOs in two ways:
 	 *
-	 * There are two paths GPIO consumers can take as follows:
-	 * 1) The consumer (gpiolib-cdev for example) which uses GPIO global
-	 * number which gets assigned run time.
-	 * 2) The consumer passing GPIO from the DT which is assigned
-	 * statically for example by using TEGRA194_AON_GPIO gpio DT binding.
+	 * 1) Using the global GPIO numberspace.
+	 *
+	 * This is the old, now DEPRECATED method and should not be used in
+	 * new code. TODO: Check if tegra is even concerned by this.
+	 *
+	 * 2) Using GPIO descriptors that can be assigned to consumer devices
+	 * using device-tree, ACPI or lookup tables.
 	 *
 	 * The code below addresses both the consumer use cases and maps into
 	 * HTE/GTE namespace.
-- 
2.39.2


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

end of thread, other threads:[~2023-10-05  6:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11  9:44 [PATCH] hte: tegra194: improve the GPIO-related comment Bartosz Golaszewski
2023-09-29 21:38 ` Dipen Patel
2023-10-02  8:33   ` Bartosz Golaszewski
2023-10-02 16:27     ` Dipen Patel
2023-10-03  8:58       ` Bartosz Golaszewski
2023-10-03 16:42         ` Dipen Patel
2023-10-04 10:04           ` Bartosz Golaszewski
2023-10-04 20:24             ` Dipen Patel
2023-10-05  6:47               ` 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).