Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3071be29 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru
Browse files

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: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent bc399a65
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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