Verdin imx8mm: suspend/resume of panel-simple failed

Hello @Mowlwurf ,

Not on this Raydium driver, but if you have the display working with panel-simple you could try to do something like this:

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 00d66d563b8ed..c6721d10aa6da 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -482,12 +482,6 @@ static int panel_simple_prepare(struct drm_panel *panel)
        if (p->prepared)
                return 0;

-       ret = pm_runtime_get_sync(panel->dev);
-       if (ret < 0) {
-               pm_runtime_put_autosuspend(panel->dev);
-               return ret;
-       }
-
        p->prepared = true;

        return 0;

I assume then the prepare function should not fail and maybe the display works afterwards.
Please let us know about the results.

Best regards,
Josep