Commit 49ddab08 authored by Hsin-Yi Wang's avatar Hsin-Yi Wang Committed by Douglas Anderson

drm/panel-edp: use put_sync in unprepare

Some edp panel requires T10 (Delay from end of valid video data transmitted
by the Source device to power-off) less than 500ms. Using autosuspend with
delay set as 1000 violates this requirement.

Use put_sync_suspend in unprepare to meet the spec. For other cases (such
as getting EDID), it still uses autosuspend.
Suggested-by: default avatarDouglas Anderson <dianders@chromium.org>
Fixes: 3235b0f2 ("drm/panel: panel-simple: Use runtime pm to avoid excessive unprepare / prepare")
Signed-off-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231220221418.2610185-1-hsinyi@chromium.org
parent 251ba458
...@@ -429,8 +429,7 @@ static int panel_edp_unprepare(struct drm_panel *panel) ...@@ -429,8 +429,7 @@ static int panel_edp_unprepare(struct drm_panel *panel)
if (!p->prepared) if (!p->prepared)
return 0; return 0;
pm_runtime_mark_last_busy(panel->dev); ret = pm_runtime_put_sync_suspend(panel->dev);
ret = pm_runtime_put_autosuspend(panel->dev);
if (ret < 0) if (ret < 0)
return ret; return ret;
p->prepared = false; p->prepared = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment