Merge "disp: msm: dp: do not skip disconnect when host is unready"

This commit is contained in:
qctecmdr
2020-09-12 11:26:36 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -1363,7 +1363,8 @@ static int dp_display_usbpd_disconnect_cb(struct device *dev)
dp->debug->psm_enabled);
/* skip if a disconnect is already in progress */
if (dp_display_state_is(DP_STATE_ABORTED)) {
if (dp_display_state_is(DP_STATE_ABORTED) &&
dp_display_state_is(DP_STATE_READY)) {
DP_DEBUG("disconnect already in progress\n");
SDE_EVT32_EXTERNAL(SDE_EVTLOG_FUNC_CASE1, dp->state);
return 0;