projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b20adb9
)
drm/omapdrm: Fix omap_atomic_wait_for_completion
author
Maarten Lankhorst
<
[email protected]
>
Wed, 19 Jul 2017 14:39:17 +0000
(16:39 +0200)
committer
Maarten Lankhorst
<
[email protected]
>
Tue, 1 Aug 2017 09:07:36 +0000
(11:07 +0200)
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: Maarten Lankhorst <
[email protected]
>
Cc: Tomi Valkeinen <
[email protected]
>
Reviewed-by: Daniel Vetter <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/omapdrm/omap_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/omapdrm/omap_drv.c
b/drivers/gpu/drm/omapdrm/omap_drv.c
index ce3341d61a1203d101257dfda4ad681d895fc6cd..721a358531b01325da29033f35da12c317d6cb48 100644
(file)
--- a/
drivers/gpu/drm/omapdrm/omap_drv.c
+++ b/
drivers/gpu/drm/omapdrm/omap_drv.c
@@
-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,
struct drm_atomic_state *old_state)
{
- struct drm_crtc_state *
old
_crtc_state;
+ struct drm_crtc_state *
new
_crtc_state;
struct drm_crtc *crtc;
unsigned int i;
int ret;
- for_each_
crtc_in_state(old_state, crtc, old
_crtc_state, i) {
- if (!
crtc->state->enabl
e)
+ for_each_
new_crtc_in_state(old_state, crtc, new
_crtc_state, i) {
+ if (!
new_crtc_state->activ
e)
continue;
ret = omap_crtc_wait_pending(crtc);