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

Commit dea32278 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Gerrit - the friendly Code Review server
Browse files

policy_engine: Clear ss_lane_svid in reset_vdm_state()



During insertion of DP adaptor, our target might start in SINK mode
as well. In that case, DP adaptor sends DR_SWAP to change data role
from UFP to DFP. While starting host mode, driver is not clearing
ss_lane_svid variable due to which usb_pd_release_ss_lanes() will
return -EBUSY even though DP client is requesting. Fix the issue by
clearing ss_lane_svid in reset_vdm_state() unconditionally.

Change-Id: I62e775623295d795ad3e203590634f669cbf7537
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 8db2427a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1818,6 +1818,7 @@ static void reset_vdm_state(struct usbpd *pd)
	pd->num_svids = 0;
	kfree(pd->vdm_tx);
	pd->vdm_tx = NULL;
	pd->ss_lane_svid = 0x0;
}

static void dr_swap(struct usbpd *pd)