From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> There's no need to check for both eDP and fixed_mode when deciding whether to do the pfit calculations or not. Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> --- drivers/gpu/drm/i915/display/intel_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 9ac199444155..6bc7ff0c4320 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -1044,7 +1044,7 @@ intel_dp_mode_valid(struct drm_connector *_connector, return MODE_H_ILLEGAL; fixed_mode = intel_panel_fixed_mode(connector, mode); - if (intel_dp_is_edp(intel_dp) && fixed_mode) { + if (fixed_mode) { status = intel_panel_mode_valid(connector, mode); if (status != MODE_OK) return status; @@ -2175,7 +2175,7 @@ intel_dp_compute_config(struct intel_encoder *encoder, intel_audio_compute_config(encoder, pipe_config, conn_state); fixed_mode = intel_panel_fixed_mode(connector, adjusted_mode); - if (intel_dp_is_edp(intel_dp) && fixed_mode) { + if (fixed_mode) { ret = intel_panel_compute_config(connector, adjusted_mode); if (ret) return ret; -- 2.39.2