summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorPadmanabhan Komanduru <pkomandu@codeaurora.org>2017-07-03 12:56:56 +0530
committerPadmanabhan Komanduru <pkomandu@codeaurora.org>2017-07-03 12:57:33 +0530
commit3071be2987f4bf3ac5e17c919160cf196dcfb3c3 (patch)
treebcdedd01a01702eac317cde5ff94e7b8bea30bf7 /drivers/video/fbdev
parentbc399a65c4e048d98b6304272e32402bfca59dda (diff)
mdss: dp: avoid notifying DP connect during AUX timeout cases
In case the DPCD read transaction continuously times out, it is likely that the sink is not responding or the DP cable/dongle is faulty and hence no response is seen. In such cases, avoid reporting the DP connect event to userspace. Change-Id: Ie07de464f63dc3b18c875a061a18ad00e4c99e85 Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdss_dp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dp.c b/drivers/video/fbdev/msm/mdss_dp.c
index c8afb3a244c3..2f169074261a 100644
--- a/drivers/video/fbdev/msm/mdss_dp.c
+++ b/drivers/video/fbdev/msm/mdss_dp.c
@@ -2176,6 +2176,10 @@ static int mdss_dp_process_hpd_high(struct mdss_dp_drv_pdata *dp)
ret = mdss_dp_dpcd_cap_read(dp);
if (ret || !mdss_dp_aux_is_link_rate_valid(dp->dpcd.max_link_rate) ||
!mdss_dp_aux_is_lane_count_valid(dp->dpcd.max_lane_count)) {
+ if (ret == EDP_AUX_ERR_TOUT) {
+ pr_err("DPCD read timedout, skip connect notification\n");
+ goto end;
+ }
/*
* If there is an error in parsing DPCD or if DPCD reports
* unsupported link parameters then set the default link