diff options
| author | Padmanabhan Komanduru <pkomandu@codeaurora.org> | 2014-12-23 16:37:29 +0530 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:39:07 -0700 |
| commit | bb8ed5458639e044492dca43fbd3467b83411feb (patch) | |
| tree | c7bcd824f5827f041f9f2d74c9947c7dbb0e7ea9 | |
| parent | 47fc8d8adfa09ceb656e41adb00fea9a43af0bf4 (diff) | |
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>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_intf_video.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 < |
