[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250407-gpiod-is-equal-v1-0-7d85f568ae6e@linaro.org>
Date: Mon, 07 Apr 2025 09:08:13 +0200
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>, Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: [PATCH 0/2] gpio: don't compare raw GPIO descriptor pointers
directly
Handling of shared GPIOs in the kernel needs some improvements. Let's
start with a simple change of not comparing GPIO descriptor pointers
directly as there's nothing that guarantees that the same physical pin
will always be represented by a single GPIO descriptor obtained by
calling gpiod_get().
For merging: I suggest to take patch 1/2 through the GPIO tree and
provide an immutable tag for the regulator tree.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
---
Bartosz Golaszewski (2):
gpio: provide gpiod_is_equal()
regulator: don't compare raw GPIO descriptor pointers
drivers/gpio/gpiolib.c | 14 ++++++++++++++
drivers/regulator/core.c | 2 +-
include/linux/gpio/consumer.h | 9 +++++++++
3 files changed, 24 insertions(+), 1 deletion(-)
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250402-gpiod-is-equal-4e28bb8ab842
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Powered by blists - more mailing lists