Hi Ulf, just quick answers,
On Mon, Nov 23, 2026 at 5:16 PM Ulf Hansson <[email protected]> wrote: > > #include <drm/drm_atomic_helper.h> > > @@ -1187,16 +1187,15 @@ static void mcde_crtc_helper_atomic_enable(struct > > drm_crtc *crtc, > > int ret; > > > > /* This powers up the entire MCDE block and the DSI hardware */ > > - ret = regulator_enable(mcde->epod); > > + ret = pm_runtime_resume_and_get(mcde->dev); > > if (ret) { > > - dev_err(drm->dev, "can't re-enable EPOD regulator\n"); > > + dev_err(drm->dev, "can't enable MCDE power domain\n"); > > return; > > } > > Neither regulator_enable() or pm_runtime_resume_and_get() (unless > marked irq_safe) are supposed to be called from atomic context. > > Isn't mcde_crtc_helper_atomic_enable() called from atomic context? Atomic mode setting is a false friend. "atomic" is one of those things used a bit like "static" in C, the meaning depends on context :/ DRM atomic modesetting does not imply atomic context, it's just regular context here, so this is fine. I applied the patch your ACK! Yours, Linus Walleij
