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 <pkomandu@codeaurora.org>
This commit is contained in:
Padmanabhan Komanduru 2014-12-23 16:37:29 +05:30 committed by David Keitel
parent 47fc8d8adf
commit bb8ed54586

View file

@ -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 <