“6741c4bb389da103c0d79ad1961884628900bfe6”上不存在“arch/mips/git@gitcode.net:openeuler/raspberrypi-kernel.git”
提交 4be40c98 编写于 作者: M Maarten Lankhorst 提交者: Daniel Vetter

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: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: NDaniel Stone <daniels@collabora.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 b06f8b0d
...@@ -15291,7 +15291,7 @@ static void intel_sanitize_crtc(struct intel_crtc *crtc) ...@@ -15291,7 +15291,7 @@ static void intel_sanitize_crtc(struct intel_crtc *crtc)
crtc->base.state->enable ? "enabled" : "disabled", crtc->base.state->enable ? "enabled" : "disabled",
crtc->active ? "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.state->active = crtc->active;
crtc->base.enabled = crtc->active; crtc->base.enabled = crtc->active;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册