提交 34d88237 编写于 作者: M Maarten Lankhorst

drm/omapdrm: Fix omap_atomic_wait_for_completion

Use the new iterator macro and look for crtc_state->active instead of
enable, only crtc_state->active implies that vblanks will happen.
Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170719143920.25685-5-maarten.lankhorst@linux.intel.com
上级 b20adb91
...@@ -57,13 +57,13 @@ static void omap_fb_output_poll_changed(struct drm_device *dev) ...@@ -57,13 +57,13 @@ static void omap_fb_output_poll_changed(struct drm_device *dev)
static void omap_atomic_wait_for_completion(struct drm_device *dev, static void omap_atomic_wait_for_completion(struct drm_device *dev,
struct drm_atomic_state *old_state) struct drm_atomic_state *old_state)
{ {
struct drm_crtc_state *old_crtc_state; struct drm_crtc_state *new_crtc_state;
struct drm_crtc *crtc; struct drm_crtc *crtc;
unsigned int i; unsigned int i;
int ret; int ret;
for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) {
if (!crtc->state->enable) if (!new_crtc_state->active)
continue; continue;
ret = omap_crtc_wait_pending(crtc); ret = omap_crtc_wait_pending(crtc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册