Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v3.6-branch] input: gpio_keys: fix suspend race condition #70259

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Mar 14, 2024

Backport d0a8c41 from #70128.

Fixes #70068

Change the suspend/resume code to ensure that the interrupt are disabled
before changing the pin configuration. The current sequence has been
reported to cause spurious readouts on some platforms, this takes the
existing code and duplicates for the suspend and resume case, but swaps
the interrupt disable and configure for the suspend case.

Signed-off-by: Fabio Baltieri <[email protected]>
(cherry picked from commit d0a8c41)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Input Input Subsystem and Drivers labels Mar 14, 2024
@henrikbrixandersen henrikbrixandersen merged commit 83466c2 into v3.6-branch Mar 18, 2024
20 checks passed
@nashif nashif deleted the backport-70128-to-v3.6-branch branch November 16, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Input Input Subsystem and Drivers Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants