Re: [PATCH v2 3/5] gpio: mvebu: don't re-mask irqs unmasked during early resume
From: sashiko-bot
Date: Fri Dec 04 2026 - 22:25:35 EST
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@xxxxxxxxx>
> 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@xxxxxxxxx>
[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@xxxxxxxxx?part=3