On 25/11/2026 14:19, [email protected] wrote:
[...]
+static const struct dev_pm_ops sw43408_pm_ops = {
+ LATE_SYSTEM_SLEEP_PM_OPS(sw43408_suspend_late, NULL)
+};
[Severity: High]
Does sw43408_pm_ops also need an early resume callback to re-enable vpnl
when vddi turns back on during system resume?
During system suspend, DRM unprepares the panel in .prepare
(dpu_pm_ops.prepare -> msm_kms_pm_prepare()), stmfts_suspend() drops the
touchscreen's vddi vote in .suspend, and sw43408_suspend_late() then sees
regulator_is_enabled(vddi) == 0 and disables vpnl.
On resume, stmfts_resume() unconditionally re-enables vddi during the
.resume phase, while DRM does not resume the panel until .complete (or not
at all during resume if the display was blanked before suspend). That
leaves the panel in the vddi-on, vpnl-off state across .resume, and when
sw43408_prepare() later runs, vddi is already held enabled by stmfts so
regulator_enable(vddi) does not power-cycle vddi to recover the DDIC.
I ran automated stress testing for all states, and it seems it's necessary here.
Report below the line.
From maintainer point view, if there would be need to make it bulletproof I can
explore Option 1/2 to address it, but hardware-wise it seems to be not required.
I can send v4 with more verbose explanation within the commit msg / code, if
needed.
David
---
Good catch to check the resume path, but hardware testing on Pixel 3
shows no resume callback is needed here.
The non-recoverable DDIC state occurs when vpnl is dropped while vddi
remains powered ((VDDI=ON, VPNL=ON) -> (VDDI=ON, VPNL=OFF)), not when
powering up from a cold both-rails-off state with vddi rising ahead of
vpnl.
I explicitly tested the exact rail sequence on Pixel 3:
1. Both vddi (ldo14) and vpnl (ldo28) off, reset deasserted (the state
left by sw43408_suspend_late()).
2. Re-enabled vddi alone via stmfts while vpnl remained off, and held
(VDDI=ON, VPNL=OFF, reset=HIGH) for 6 seconds.
3. Ran sw43408_prepare() with vddi still continuously held on by stmfts
(no vddi power cycle).
The panel recovered cleanly and lit up normally.
Also note that an early resume callback (.resume_early) would run before
stmfts_resume() re-enables vddi, so enabling vpnl there would either see
regulator_is_enabled(vddi) == 0 (no-op) or unconditionally power up
3.0 V vpnl before 1.8 V vddi (reversing the power-on sequence and
leaving vpnl enabled when no shared consumer brings vddi up).