aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Qian Wang <[email protected]>2020-11-19 09:39:48 +0800
committerLiviu Dudau <[email protected]>2020-12-18 16:35:41 +0000
commit4b501262826f5b20f54433c586b111dd190bea25 (patch)
treeb0fda86f3e24b664eddc05e8ff79ae84302e1695
parent29c9dece56ca82c510c39a0e9403b80bdb3032d6 (diff)
drm/komeda: Correct the sequence of hw_done() and flip_done()
Komeda HW has no special, program the update to HW is done first, then flip happens. So correct the sequence to hw_done() first then flip_done(). Reported-by: Daniel Vetter <[email protected]> Signed-off-by: James Qian Wang <[email protected]> Acked-by: Daniel Vetter <[email protected]> Signed-off-by: Liviu Dudau <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/gpu/drm/arm/display/komeda/komeda_kms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c
index 6b99df696384..034ee08482e0 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c
@@ -81,10 +81,10 @@ static void komeda_kms_commit_tail(struct drm_atomic_state *old_state)
drm_atomic_helper_commit_modeset_enables(dev, old_state);
- drm_atomic_helper_wait_for_flip_done(dev, old_state);
-
drm_atomic_helper_commit_hw_done(old_state);
+ drm_atomic_helper_wait_for_flip_done(dev, old_state);
+
drm_atomic_helper_cleanup_planes(dev, old_state);
}