Repository navigation
rpi-7.4.y: Fix Pi 5 suspend/resume - #7798
Merged
pelwell merged 2 commits intoNov 25, 2026
Merged
Conversation
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>
Collaborator
Author
|
The same commits cherry-pick to rpi-7.3.y and fix suspend/resume there too. |
Contributor
|
Back-ported to 7.3. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The suspend commits rebased from rpi-6.18.y didn't work on 7.4:
suspend_noirqreturn -EBUSY on a GPIO block with no interrupt (gio_aon on BCM2712), so every suspend aborted.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.