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

Commit 5dd29115 authored by Ajay Singh Parmar's avatar Ajay Singh Parmar Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: dp: fix link training routine for VGA monitors



Fix the link training routine by removing the updates to
the state control register and the corresponding memory
barrier to complete the register write. This changes fixes
the link training failures seen with VGA monitors over the
Type-C/VGA dongle interface.

CRs-Fixed: 2008753
Change-Id: I501833e02d24d6aa12351eb0bd067a08ad597ed0
Signed-off-by: default avatarAjay Singh Parmar <aparmar@codeaurora.org>
parent 49237b20
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2247,12 +2247,8 @@ static int dp_start_link_train_2(struct mdss_dp_drv_pdata *ep)
	else
		pattern = 0x02;

	dp_write(ep->base + DP_STATE_CTRL, 0x0);
	/* Make sure to clear the current pattern before starting a new one */
	wmb();

	dp_host_train_set(ep, pattern);
	mdss_dp_aux_update_voltage_and_pre_emphasis_lvl(ep);
	dp_host_train_set(ep, pattern);
	dp_train_pattern_set_write(ep, pattern | 0x20);/* train_2 */

	do  {