summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatenda Chipeperekwa <tatendac@codeaurora.org>2017-04-04 17:20:40 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-06 11:41:08 -0700
commit48e69387e5fd40785e28ef8fc20264ce084fcb64 (patch)
treeafe9152d18869afc395b74df7fe4f8113dc9e5ae
parentc19af183fcd2b546607568c7baa4402433edbe2c (diff)
msm: mdss: dp: skip transfer unit setup on link training requests
Skip the transfer unit setup and the routine to wait for the video ready interrupt as link training tests do not require video frames to be sent. CRs-Fixed: 2006096 Change-Id: Ibf9cda18f8740890f384b1d99f8d00b4692ab74d Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_dp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dp.c b/drivers/video/fbdev/msm/mdss_dp.c
index 226198efbeec..7a1b563fbb6c 100644
--- a/drivers/video/fbdev/msm/mdss_dp.c
+++ b/drivers/video/fbdev/msm/mdss_dp.c
@@ -1434,6 +1434,13 @@ static int mdss_dp_setup_main_link(struct mdss_dp_drv_pdata *dp, bool train)
if (ret)
goto end;
+ /*
+ * Skip the transfer unit setup and the routine to wait for the
+ * video ready interrupt as link training tests do not require
+ * video frames to be sent.
+ */
+ if (mdss_dp_is_link_training_requested(dp))
+ goto end;
send_video:
/*
* Set up transfer unit values and set controller state to send