From: Ajay Kumar Date: Thu, 31 Jul 2014 17:42:07 +0000 (+0530) Subject: drm/tegra: Add support for panel prepare and unprepare routines X-Git-Tag: v4.9.8~5935^2~2^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0407ed8afe0cada72b0c28fd35c821fe3b235593;p=platform%2Fkernel%2Flinux-rpi3.git drm/tegra: Add support for panel prepare and unprepare routines Modify tegra output driver to support the new panel calls: prepare and unprepare. Signed-off-by: Ajay Kumar Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/output.c b/drivers/gpu/drm/tegra/output.c index a3e4f1e..9609bc3 100644 --- a/drivers/gpu/drm/tegra/output.c +++ b/drivers/gpu/drm/tegra/output.c @@ -140,7 +140,9 @@ static void tegra_encoder_dpms(struct drm_encoder *encoder, int mode) if (mode != DRM_MODE_DPMS_ON) { drm_panel_disable(panel); tegra_output_disable(output); + drm_panel_unprepare(panel); } else { + drm_panel_prepare(panel); tegra_output_enable(output); drm_panel_enable(panel); }