Commit 8733932a authored by Jani Nikula's avatar Jani Nikula

drm/i915/edp: reject modes with dimensions other than fixed mode

Be more strict about filtering modes for eDP.

Cc: Nischal Varide <nischal.varide@intel.com>
Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/feb4c3b2b9c4da56a840bdb3c0e7fd0e58ee50de.1613054234.git.jani.nikula@intel.com
parent c093056b
...@@ -789,10 +789,10 @@ intel_dp_mode_valid(struct drm_connector *connector, ...@@ -789,10 +789,10 @@ intel_dp_mode_valid(struct drm_connector *connector,
return MODE_H_ILLEGAL; return MODE_H_ILLEGAL;
if (intel_dp_is_edp(intel_dp) && fixed_mode) { if (intel_dp_is_edp(intel_dp) && fixed_mode) {
if (mode->hdisplay > fixed_mode->hdisplay) if (mode->hdisplay != fixed_mode->hdisplay)
return MODE_PANEL; return MODE_PANEL;
if (mode->vdisplay > fixed_mode->vdisplay) if (mode->vdisplay != fixed_mode->vdisplay)
return MODE_PANEL; return MODE_PANEL;
target_clock = fixed_mode->clock; target_clock = fixed_mode->clock;
......
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