]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/skl: Do not allow scaling when crtc is disabled.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 24 Nov 2015 10:29:02 +0000 (11:29 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 22 Dec 2015 12:42:27 +0000 (13:42 +0100)
commit3f1b8d2fb576d5e9885a9b6765eb223a037ffeb4
tree65de7d28ccda798647bfafc6701f933be89f0afd
parent4fe5eaec917769cc1c19c0de15cae158cdbe679f
drm/i915/skl: Do not allow scaling when crtc is disabled.

This fixes a warning when the crtc is turned off. In that case fb
will be NULL, and crtc_clock will be 0. Because the crtc is no longer
active this is not a bug, and shouldn't trigger the WARN_ON.

Also remove handling a null crtc_state, with all transitional helpers
gone this can no longer happen.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1448360945-5723-2-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/intel_display.c