Skip to content

rpi-7.4.y: Fix Pi 5 suspend/resume - #7798

Merged
pelwell merged 2 commits into
raspberrypi:rpi-7.4.yfrom
popcornmix:rpi-7.4.y-suspend-fixes
Nov 25, 2026
Merged

pelwell merged 2 commits into
raspberrypi:rpi-7.4.yfrom
popcornmix:rpi-7.4.y-suspend-fixes

Conversation

@popcornmix

Copy link
Copy Markdown
Collaborator

The suspend commits rebased from rpi-6.18.y didn't work on 7.4:

  • gpio: brcmstb: upstream 2c46f19 ("allow parent_irq to wake") makes suspend_noirq return -EBUSY on a GPIO block with no interrupt (gio_aon on BCM2712), so every suspend aborted.
  • fixup! mailbox: bcm2835: 7.4 dropped platform_set_drvdata() from probe, so the resume handler hit a NULL pointer on resume (oops, then DPM watchdog panic).

Tested on a Pi 5: 6 deep suspend cycles with RTC wake. Ethernet, USB, SD, Wi-Fi, Bluetooth and HDMI all came back.

Commit 2c46f19 ("gpio: brcmstb: allow parent_irq to wake") only
sets priv->suspended when there is a parent IRQ, but suspend_noirq
returns -EBUSY whenever it is clear. A block with no interrupts, such as
gio_aon on BCM2712, therefore aborts every system suspend.

Only treat a clear flag as a pending wakeup when there is a parent IRQ.

Fixes: 2c46f19 ("gpio: brcmstb: allow parent_irq to wake")
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
@popcornmix

Copy link
Copy Markdown
Collaborator Author

The same commits cherry-pick to rpi-7.3.y and fix suspend/resume there too.

@pelwell
pelwell merged commit c487bac into raspberrypi:rpi-7.4.y Nov 25, 2026
11 of 12 checks passed
@pelwell

pelwell commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Back-ported to 7.3.

@popcornmix
popcornmix deleted the rpi-7.4.y-suspend-fixes branch November 25, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants