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.
Since I noticed you reviewing this series, I'm looking at the Sashiko right now,
it's little bit harder to comprehend, but trying to figure out best solution.
From the actual testing the configuration works well as is, but LLM offers some
solutions which I'm not understanding fully yet:
1. Track vddi via devm_regulator_register_notifier() + work_struct
2. Add .complete callback
3. it's harmless, ignore it.
From my testing I don't see any problems, so I would love to easily say it's
harmless (e.g. 3.), but I'll try to figure out if 1. or 2. would be more sense.
David