drm/i915: Zero the mode in intel_sanitize_crtc when force disabling.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 14 Jul 2015 11:45:32 +0000 (13:45 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Jul 2015 15:18:30 +0000 (17:18 +0200)
commit4be40c987aa0867a8fa77c12d5ed6fa2f8853dbc
treec1d76290d4950bdc9fb8aad09e2ce609fbbb0488
parentb06f8b0df73dea39337e394805827491d0b1585c
drm/i915: Zero the mode in intel_sanitize_crtc when force disabling.

There is a WARN_ON in drm_atomic_crtc_check for this when exposing the atomic property.
If the mode_blob still exists, but enable = false then all updates are rejected with -EINVAL.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c