From: sashiko-bot@kernel.org
To: "Rosen Penev" <rosenp@gmail.com>
Cc: linux-gpio@vger.kernel.org, linux-rt-devel@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/5] gpio: mvebu: don't re-mask irqs unmasked during early resume
Date: Sat, 05 Dec 2026 03:25:27 +0000 [thread overview]
Message-ID: <sashiko-outbox-250979@kernel.org> (raw)
In-Reply-To: <20261205031111.12306-4-rosenp@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] gpio: mvebu: Fixes trailer cites 02af7eac17bc instead of
b5b7b487431b
--
commit 274be6d5e8aaf9eb8607be44d3ba9ffbf49f09e2
Author: Rosen Penev <rosenp@gmail.com>
> gpio: mvebu: don't re-mask irqs unmasked during early resume
>
> mvebu_gpio_resume() writes back the mask registers saved at suspend
> time, ANDed with the irqchip mask cache. A line that was masked at
> suspend time and unmasked before mvebu_gpio_resume() runs, for example
> by enable_irq() in another driver's resume_noirq callback, is set in
> both the cache and the hardware, but not in the saved value. The
> restore then masks it again behind genirq's back and its interrupts
> are lost.
>
> Include the current register value when restoring: keep a line
> unmasked if it was unmasked at suspend time or is unmasked now, and
> only while the cache still has it unmasked. After a power loss the
> mask registers come back as zero, so this changes nothing there.
>
> Fixes: 02af7eac17bc ("gpio: mvebu: keep resume masks within the irqchip cache")
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
[Severity: Low]
Should the Fixes trailer point to b5b7b487431b ("gpio: mvebu: add
suspend/resume support") instead of 02af7eac17bc ("gpio: mvebu: keep resume
masks within the irqchip cache")?
mvebu_gpio_resume() has overwritten the mask registers with suspend-time saved
values since b5b7b487431b ("gpio: mvebu: add suspend/resume support"), which
already re-masked lines unmasked during early resume. Masking the saved value
with the irqchip cache did not change the outcome when the saved bit is 0.
Citing the introducing commit helps stable trees with suspend/resume support
track the fix:
Fixes: b5b7b487431b ("gpio: mvebu: add suspend/resume support")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205031111.12306-1-rosenp@gmail.com?part=3
next prev parent reply other threads:[~2026-12-05 3:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 3:11 [PATCH v2 0/5] gpio: mvebu: resume, PREEMPT_RT and PWM fixes Rosen Penev
2026-12-05 3:11 ` [PATCH v2 1/5] gpio: mvebu: use a raw-locked regmap on Armada 7K/8K too Rosen Penev
2026-12-05 3:11 ` [PATCH v2 2/5] gpio: mvebu: restore suspend-time irq masks under gc->lock Rosen Penev
2026-12-05 3:11 ` [PATCH v2 3/5] gpio: mvebu: don't re-mask irqs unmasked during early resume Rosen Penev
2026-12-05 3:25 ` sashiko-bot [this message]
2026-12-05 3:11 ` [PATCH v2 4/5] gpio: mvebu: don't request the PWM GPIO under a spinlock Rosen Penev
2026-12-05 3:11 ` [PATCH v2 5/5] gpio: mvebu: report the PWM line's own enable bit Rosen Penev
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-250979@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=rosenp@gmail.com \
--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.