From: Philipp Zabel Date: Fri, 24 Feb 2017 17:16:47 +0000 (+0100) Subject: drm/imx: don't wait for vblank and stop calling cleanup_planes in commit_tail X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf92fefd040e6117fbcd4ce2baa9c54ae515e0c6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/imx: don't wait for vblank and stop calling cleanup_planes in commit_tail drm_atomic_helper_cleanup_planes only calls the cleanup_fb plane helpers, which we don't implement as a CMA framebuffer based driver. There is no reason to wait for vblanks in commit_tail only to do nothing afterwards. Signed-off-by: Philipp Zabel Reviewed-by: Lucas Stach --- diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 4b7b92a7bcf7..2566e4dbe92e 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -132,10 +132,6 @@ static void imx_drm_atomic_commit_tail(struct drm_atomic_state *state) drm_atomic_helper_commit_modeset_enables(dev, state); drm_atomic_helper_commit_hw_done(state); - - drm_atomic_helper_wait_for_vblanks(dev, state); - - drm_atomic_helper_cleanup_planes(dev, state); } static const struct drm_mode_config_helper_funcs imx_drm_mode_config_helpers = {