From bb8ed5458639e044492dca43fbd3467b83411feb Mon Sep 17 00:00:00 2001 From: Padmanabhan Komanduru Date: Tue, 23 Dec 2014 16:37:29 +0530 Subject: [PATCH] msm: mdss: avoid MDP line count check when target is in suspend During DSI data lane recovery sequence, we poll on the MDP line count to enter the active region before performing the DSI recovery operation. Sometimes, the overflow error can occur just when the display enters suspend state. This causes the DSI event thread to enter a continuous while loop causing watchdog kill due to kernel logs flooded with the below error. mdss_mdp_video_intf_recovery: line count is less. line_cnt = 0 Avoid check for the line count in such cases. Change-Id: I4159ae639edc9b0e2cd0f09b97ba6fbd640737d4 Signed-off-by: Padmanabhan Komanduru --- drivers/video/fbdev/msm/mdss_mdp_intf_video.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/video/fbdev/msm/mdss_mdp_intf_video.c b/drivers/video/fbdev/msm/mdss_mdp_intf_video.c index fa578baf4af2..ab9cc0c50807 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_intf_video.c +++ b/drivers/video/fbdev/msm/mdss_mdp_intf_video.c @@ -192,6 +192,11 @@ static void mdss_mdp_video_intf_recovery(void *data, int event) delay = POLL_TIME_USEC_FOR_LN_CNT; while (1) { + if (!ctl || !ctx || !ctx->timegen_en) { + pr_warn("Target is in suspend state\n"); + return; + } + line_cnt = mdss_mdp_video_line_count(ctl); if ((line_cnt >= min_ln_cnt) && (line_cnt <