aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 18bcfbe0b8ba..09bdd94ca3ba 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -574,8 +574,6 @@ static int edp_notify_handler(struct notifier_block *this, unsigned long code,
574 edp_notifier); 574 edp_notifier);
575 struct drm_device *dev = intel_dp_to_dev(intel_dp); 575 struct drm_device *dev = intel_dp_to_dev(intel_dp);
576 struct drm_i915_private *dev_priv = dev->dev_private; 576 struct drm_i915_private *dev_priv = dev->dev_private;
577 u32 pp_div;
578 u32 pp_ctrl_reg, pp_div_reg;
579 577
580 if (!is_edp(intel_dp) || code != SYS_RESTART) 578 if (!is_edp(intel_dp) || code != SYS_RESTART)
581 return 0; 579 return 0;
@@ -584,6 +582,8 @@ static int edp_notify_handler(struct notifier_block *this, unsigned long code,
584 582
585 if (IS_VALLEYVIEW(dev)) { 583 if (IS_VALLEYVIEW(dev)) {
586 enum pipe pipe = vlv_power_sequencer_pipe(intel_dp); 584 enum pipe pipe = vlv_power_sequencer_pipe(intel_dp);
585 u32 pp_ctrl_reg, pp_div_reg;
586 u32 pp_div;
587 587
588 pp_ctrl_reg = VLV_PIPE_PP_CONTROL(pipe); 588 pp_ctrl_reg = VLV_PIPE_PP_CONTROL(pipe);
589 pp_div_reg = VLV_PIPE_PP_DIVISOR(pipe); 589 pp_div_reg = VLV_PIPE_PP_DIVISOR(pipe);
@@ -5536,7 +5536,6 @@ static void intel_dp_set_drrs_state(struct drm_device *dev, int refresh_rate)
5536 struct intel_dp *intel_dp = dev_priv->drrs.dp; 5536 struct intel_dp *intel_dp = dev_priv->drrs.dp;
5537 struct intel_crtc_state *config = NULL; 5537 struct intel_crtc_state *config = NULL;
5538 struct intel_crtc *intel_crtc = NULL; 5538 struct intel_crtc *intel_crtc = NULL;
5539 u32 reg, val;
5540 enum drrs_refresh_rate_type index = DRRS_HIGH_RR; 5539 enum drrs_refresh_rate_type index = DRRS_HIGH_RR;
5541 5540
5542 if (refresh_rate <= 0) { 5541 if (refresh_rate <= 0) {
@@ -5598,9 +5597,10 @@ static void intel_dp_set_drrs_state(struct drm_device *dev, int refresh_rate)
5598 DRM_ERROR("Unsupported refreshrate type\n"); 5597 DRM_ERROR("Unsupported refreshrate type\n");
5599 } 5598 }
5600 } else if (INTEL_INFO(dev)->gen > 6) { 5599 } else if (INTEL_INFO(dev)->gen > 6) {
5601 reg = PIPECONF(intel_crtc->config->cpu_transcoder); 5600 u32 reg = PIPECONF(intel_crtc->config->cpu_transcoder);
5602 val = I915_READ(reg); 5601 u32 val;
5603 5602
5603 val = I915_READ(reg);
5604 if (index > DRRS_HIGH_RR) { 5604 if (index > DRRS_HIGH_RR) {
5605 if (IS_VALLEYVIEW(dev)) 5605 if (IS_VALLEYVIEW(dev))
5606 val |= PIPECONF_EDP_RR_MODE_SWITCH_VLV; 5606 val |= PIPECONF_EDP_RR_MODE_SWITCH_VLV;