All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Bartosz Golaszewski <brgl@kernel.org>
Cc: Linus Walleij <linusw@kernel.org>,
	Kent Gibson <warthog618@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	linux-gpio@vger.kernel.org, linux-next@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] gpio: shared: restore the atomic set_bit() lost in a merge
Date: Thu, 26 Nov 2026 18:17:04 -0500	[thread overview]
Message-ID: <20261126231704.1303448-1-sashal@kernel.org> (raw)

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


             reply	other threads:[~2026-11-26 23:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 23:17 Sasha Levin [this message]
2026-11-27  8:48 ` [PATCH] gpio: shared: restore the atomic set_bit() lost in a merge Bartosz Golaszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126231704.1303448-1-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=brgl@kernel.org \
    --cc=broonie@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=warthog618@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.