AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 12 Bitcoin

refactor(core): display driver suspend API improvement

Public commit record

What the developer wrote

Authored by bleska

85/100 · Strong
refactor(core): display driver suspend API improvement

Remove `bool touch_wakeup_enabled` from `display_suspend()` and
`display_resume()`. The parameter was too specific to touch-panel
hardware and leaked touch wakeup policy into the display driver.

The branching between light-suspend and full deinit is moved to
`suspend_io.c`, which is the appropriate level of abstraction.
`display_resume()` now handles both cases internally: light-resume
when the driver is still initialized, and full reinit when it was
fully deinitialized during suspend.

[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This is a code cleanup change that moves decision-making about how deeply to put the screen to sleep out of the display driver and into a higher-level suspend module. It does not add or remove security protections; it only reorganizes which piece of code decides whether to keep the display partly alive for touch-wakeup or to fully shut it down. The behavior should be equivalent to before.

Recommended action

No security action required. Treat as a normal refactoring review; verify that suspend/resume behavior remains functionally equivalent on hardware with and without USE_TOUCH_WAKEUP.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 12/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.