All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>
Cc: linux-gpio@vger.kernel.org
Subject: Re: [PATCH v2 2/5] gpio: shared: use atomic set_bit() for descriptor flags
Date: Mon, 09 Nov 2026 10:34:55 +0000	[thread overview]
Message-ID: <sashiko-outbox-204827@kernel.org> (raw)
In-Reply-To: <20261109-gpio-desc-flags-atomic-v2-2-c4c54b476628@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] gpio: shared: inaccurate second Fixes trailer in
  gpiochip_setup_shared()
--

commit e33d8a46a34364d4913f4b0279d4b95dddc4953e
Author: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

> gpio: shared: use atomic set_bit() for descriptor flags
>
> Use the atomic set_bit() instead of __set_bit() on desc->flags so that
> every modification of the field uses atomic bitops. No functional change
> as these run before any line of the chip can be requested.
>
> Cc: stable@vger.kernel.org
> Fixes: eb374f764a70 ("gpio: provide gpiod_is_shared()")
> Fixes: 310a4a9cbb17 ("gpio: shared: shorten the critical section in gpiochip_setup_shared()")
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

[Severity: Low]
310a4a9cbb17 ("gpio: shared: shorten the critical section in
gpiochip_setup_shared()") only re-indented the __set_bit(GPIOD_FLAG_SHARED,
&desc->flags) call when wrapping the block in scoped_guard().  The
non-atomic __set_bit(GPIOD_FLAG_SHARED, ...) call was originally introduced
in a060b8c511ab ("gpiolib: implement low-level, shared GPIO support").

Should the second Fixes: tag instead be:

  Fixes: a060b8c511ab ("gpiolib: implement low-level, shared GPIO support")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261109-gpio-desc-flags-atomic-v2-0-c4c54b476628@oss.qualcomm.com?part=2

  reply	other threads:[~2026-11-09 10:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 10:27 [PATCH v2 0/5] gpiolib: improve concurrent access to the flags field of struct gpio_desc Bartosz Golaszewski
2026-11-09 10:27 ` [PATCH v2 1/5] gpiolib: don't overwrite the entire flags field in gpiod_get_direction() Bartosz Golaszewski
2026-11-09 10:27 ` [PATCH v2 2/5] gpio: shared: use atomic set_bit() for descriptor flags Bartosz Golaszewski
2026-11-09 10:34   ` sashiko-bot [this message]
2026-11-09 10:27 ` [PATCH v2 3/5] gpiolib: clear debounce period before the "requested" flag Bartosz Golaszewski
2026-11-09 10:37   ` sashiko-bot
2026-11-09 10:27 ` [PATCH v2 4/5] gpiolib: don't overwrite the entire flags field in gpiod_free_commit() Bartosz Golaszewski
2026-11-09 10:32   ` sashiko-bot
2026-11-09 21:53   ` Andy Shevchenko
2026-11-10  8:54     ` Bartosz Golaszewski
2026-11-10 10:06       ` Andy Shevchenko
2026-11-10 11:05         ` Joshua Crofts
2026-11-09 10:27 ` [PATCH v2 5/5] gpio: cdev: don't overwrite the whole flags field when configuring lines Bartosz Golaszewski
2026-11-09 21:58   ` Andy Shevchenko

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=sashiko-outbox-204827@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=linux-gpio@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.