aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Vivi <[email protected]>2017-09-07 16:00:37 -0700
committerRodrigo Vivi <[email protected]>2017-09-11 15:25:41 -0700
commit196cebddde80dd06b2de557ea393082bf5a06c3d (patch)
tree230a70e5dda148f0f50acea5921d06cfe6edc2ea
parent4d1fa22f4372f27ebbf2376de79a665d23623c8c (diff)
drm/i915/psr: Move hsw_enable_source after enabling sink.
No functional change is expected here since at this point PSR is not allowed to go to any active state. In other words, not really enabled. However let's do in a separated patch so it gets clear on what is change and specially it can helps on bisect case if we figure something has caused changes in behaviour. But this needs to be done before we make the vfunc to enable source to be in parity with VLV implementation. Cc: Jani Nikula <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Dhinakaran Pandiyan <[email protected]> Cc: Vathsala Nagaraju <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]> Reviewed-by: Dhinakaran Pandiyan <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/gpu/drm/i915/intel_psr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c
index 575c8b93e96f..245cf3ee979f 100644
--- a/drivers/gpu/drm/i915/intel_psr.c
+++ b/drivers/gpu/drm/i915/intel_psr.c
@@ -544,11 +544,11 @@ void intel_psr_enable(struct intel_dp *intel_dp,
hsw_psr_setup_vsc(intel_dp, crtc_state);
- hsw_psr_enable_source(intel_dp, crtc_state);
-
/* Enable PSR on the panel */
hsw_psr_enable_sink(intel_dp);
+ hsw_psr_enable_source(intel_dp, crtc_state);
+
if (INTEL_GEN(dev_priv) >= 9)
intel_psr_activate(intel_dp);
} else {