Commit 2fdb6a5e authored by Gwan-gyeong Mun's avatar Gwan-gyeong Mun Committed by Matt Roper

drm/i915/display: Remove a redundant function argument from intel_psr_enable_source()

It removes intel_crtc_state from function argument of
intel_psr_enable_source() in order to use intel_psr_enable_source()
without intel_crtc_state on other psr internal functions.
And we can get cpu_trancoder from intel_psr, therefore we don't need to
pass intel_crtc_state to this function.

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarGwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Reviewed-by: default avatarAnshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210526000656.3060314-4-matthew.d.roper@intel.com
parent bb265dbd
...@@ -990,11 +990,10 @@ static void intel_psr_activate(struct intel_dp *intel_dp) ...@@ -990,11 +990,10 @@ static void intel_psr_activate(struct intel_dp *intel_dp)
intel_dp->psr.active = true; intel_dp->psr.active = true;
} }
static void intel_psr_enable_source(struct intel_dp *intel_dp, static void intel_psr_enable_source(struct intel_dp *intel_dp)
const struct intel_crtc_state *crtc_state)
{ {
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp); struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
enum transcoder cpu_transcoder = crtc_state->cpu_transcoder; enum transcoder cpu_transcoder = intel_dp->psr.transcoder;
u32 mask; u32 mask;
/* Only HSW and BDW have PSR AUX registers that need to be setup. SKL+ /* Only HSW and BDW have PSR AUX registers that need to be setup. SKL+
...@@ -1112,7 +1111,7 @@ static void intel_psr_enable_locked(struct intel_dp *intel_dp, ...@@ -1112,7 +1111,7 @@ static void intel_psr_enable_locked(struct intel_dp *intel_dp,
&intel_dp->psr.vsc); &intel_dp->psr.vsc);
intel_write_dp_vsc_sdp(encoder, crtc_state, &intel_dp->psr.vsc); intel_write_dp_vsc_sdp(encoder, crtc_state, &intel_dp->psr.vsc);
intel_psr_enable_sink(intel_dp); intel_psr_enable_sink(intel_dp);
intel_psr_enable_source(intel_dp, crtc_state); intel_psr_enable_source(intel_dp);
intel_dp->psr.enabled = true; intel_dp->psr.enabled = true;
intel_psr_activate(intel_dp); intel_psr_activate(intel_dp);
......
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