summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_crt.c
diff options
context:
space:
mode:
authorVille Syrjälä2017-11-14 19:32:58 +0100
committerVille Syrjälä2018-01-29 20:55:07 +0100
commite995ca0b8139c5f6807095464e969931b443f55a (patch)
treed08d7fd4f0bb93e7414ae2b4ce16a974296cf429 /drivers/gpu/drm/i915/intel_crt.c
parentdrm/modes: Provide global mode_valid hook (diff)
downloadkernel-qcow2-linux-e995ca0b8139c5f6807095464e969931b443f55a.tar.gz
kernel-qcow2-linux-e995ca0b8139c5f6807095464e969931b443f55a.tar.xz
kernel-qcow2-linux-e995ca0b8139c5f6807095464e969931b443f55a.zip
drm/i915: Provide a device level .mode_valid() hook
We never support certain mode flags etc. Reject those early on in the mode_config.mode_valid() hook. That allows us to remove some duplicated checks from the connector .mode_valid() hooks, and it guarantees that we never see those flags even from user mode as the mode_config.mode_valid() hooks gets executed for those as well. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171114183258.16976-11-ville.syrjala@linux.intel.com Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_crt.c')
-rw-r--r--drivers/gpu/drm/i915/intel_crt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
index 9f31aea51dff..1cd4a7c22bd5 100644
--- a/drivers/gpu/drm/i915/intel_crt.c
+++ b/drivers/gpu/drm/i915/intel_crt.c
@@ -304,9 +304,6 @@ intel_crt_mode_valid(struct drm_connector *connector,
int max_dotclk = dev_priv->max_dotclk_freq;
int max_clock;
- if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
- return MODE_NO_DBLESCAN;
-
if (mode->clock < 25000)
return MODE_CLOCK_LOW;