* [PATCH] gpio: shared: restore the atomic set_bit() lost in a merge
@ 2026-11-26 23:17 Sasha Levin
2026-11-27 8:48 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Sasha Levin @ 2026-11-26 23:17 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Linus Walleij, Kent Gibson, Mark Brown, linux-gpio, linux-next,
linux-kernel
The v7.4-rc4 merge into gpio/for-next took the for-next version of
gpio_shared_setup_entry(), which commit cda42ff53c4b ("gpio: shared:
factor out per-entry setup helper") had moved out of
gpiochip_setup_shared(). That dropped the change from
commit 7d1d799d6251 ("gpio: shared: use atomic set_bit() for descriptor
flags"), so GPIOD_FLAG_SHARED is set with __set_bit() again, and merging
gpio/for-next into mainline would undo it.
Use set_bit() as mainline does. linux-next has the same change as a
fixup in its gpio-brgl merge.
Fixes: 45b9f0f3fcb3 ("Merge tag 'v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into gpio/for-next")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
On top of gpio/for-next 0a74985977e8. Built gpiolib-shared.o with an
arm64 defconfig and W=1.
drivers/gpio/gpiolib-shared.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpiolib-shared.c b/drivers/gpio/gpiolib-shared.c
index 62c3d8a6abdcf..7f8b31ce4b9ec 100644
--- a/drivers/gpio/gpiolib-shared.c
+++ b/drivers/gpio/gpiolib-shared.c
@@ -588,7 +588,7 @@ static int gpio_shared_setup_entry(struct gpio_chip *gc,
desc = &gdev->descs[entry->offset];
- __set_bit(GPIOD_FLAG_SHARED, &desc->flags);
+ set_bit(GPIOD_FLAG_SHARED, &desc->flags);
/*
* Shared GPIOs are not requested via the normal path. Make
* them inaccessible to anyone even before we register the
base-commit: 0a74985977e851196d69e5364f4787adb03a5fb5
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: shared: restore the atomic set_bit() lost in a merge
2026-11-26 23:17 [PATCH] gpio: shared: restore the atomic set_bit() lost in a merge Sasha Levin
@ 2026-11-27 8:48 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2026-11-27 8:48 UTC (permalink / raw)
To: Bartosz Golaszewski, Sasha Levin
Cc: Bartosz Golaszewski, Linus Walleij, Kent Gibson, Mark Brown,
linux-gpio, linux-next, linux-kernel
On Thu, 26 Nov 2026 18:17:04 -0500, Sasha Levin wrote:
> The v7.4-rc4 merge into gpio/for-next took the for-next version of
> gpio_shared_setup_entry(), which commit cda42ff53c4b ("gpio: shared:
> factor out per-entry setup helper") had moved out of
> gpiochip_setup_shared(). That dropped the change from
> commit 7d1d799d6251 ("gpio: shared: use atomic set_bit() for descriptor
> flags"), so GPIOD_FLAG_SHARED is set with __set_bit() again, and merging
> gpio/for-next into mainline would undo it.
>
> [...]
My bad, thanks for spotting it!
Applied, thanks!
[1/1] gpio: shared: restore the atomic set_bit() lost in a merge
https://git.kernel.org/brgl/c/838e2af4fde3f180abdd0e4755be078be7e132a1
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 8:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 23:17 [PATCH] gpio: shared: restore the atomic set_bit() lost in a merge Sasha Levin
2026-11-27 8:48 ` Bartosz Golaszewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.