From 444a4c75d54b9523f404f351d64a4e3654b9dc9f Mon Sep 17 00:00:00 2001 From: Kuogee Hsieh Date: Tue, 25 Nov 2014 14:57:32 -0800 Subject: [PATCH] msm: mdss: reduce vsync waiting time only when it is enabled Reduce vsync waiting time only when vsync is still enabled. Otherwise, it will trigger waiting for next vsync mistakenly and timeout eventually. CRs-Fixed: 762791 Change-Id: Ic3df12a4b449fa6d6cbbd1169e890b0cf3f67db1 Signed-off-by: Kuogee Hsieh --- drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c b/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c index 9271031738eb..e43137fd7cd5 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c +++ b/drivers/video/fbdev/msm/mdss_mdp_intf_cmd.c @@ -894,7 +894,7 @@ int mdss_mdp_cmd_intfs_stop(struct mdss_mdp_ctl *ctl, int session, * next vsync if there has no kickoff pending */ ctx->rdptr_enabled = 1; - if (sctx) + if (sctx && sctx->rdptr_enabled) sctx->rdptr_enabled = 1; } spin_unlock_irqrestore(&ctx->clk_lock, flags);