[PATCH] drm/msm/dp: Make it possible to enable the test pattern

From: Bjorn Andersson
Date: Mon Jun 28 2021 - 20:23:52 EST


The debugfs interface contains the knobs to make the DisplayPort
controller output a test pattern, unfortunately there's nothing
currently that actually enables the defined test pattern.

Fixes: de3ee25473ba ("drm/msm/dp: add debugfs nodes for video pattern tests")
Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
---
drivers/gpu/drm/msm/dp/dp_debug.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/msm/dp/dp_debug.c b/drivers/gpu/drm/msm/dp/dp_debug.c
index 2f6247e80e9d..82911af44905 100644
--- a/drivers/gpu/drm/msm/dp/dp_debug.c
+++ b/drivers/gpu/drm/msm/dp/dp_debug.c
@@ -305,6 +305,8 @@ static ssize_t dp_test_active_write(struct file *file,
debug->panel->video_test = true;
else
debug->panel->video_test = false;
+
+ dp_panel_tpg_config(debug->panel, debug->panel->video_test);
}
}
drm_connector_list_iter_end(&conn_iter);
--
2.29.2