mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 07:34:06 +08:00
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>
This commit is contained in:
parent
b06f8b0df7
commit
4be40c987a
@ -15291,7 +15291,7 @@ static void intel_sanitize_crtc(struct intel_crtc *crtc)
|
||||
crtc->base.state->enable ? "enabled" : "disabled",
|
||||
crtc->active ? "enabled" : "disabled");
|
||||
|
||||
crtc->base.state->enable = crtc->active;
|
||||
WARN_ON(drm_atomic_set_mode_for_crtc(crtc->base.state, NULL) < 0);
|
||||
crtc->base.state->active = crtc->active;
|
||||
crtc->base.enabled = crtc->active;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user