From 8ff0c70237eed0c8d0eb37e858f9b1c2ceb5c330 Mon Sep 17 00:00:00 2001 From: Yuan Zhao Date: Fri, 5 Jun 2020 17:00:39 +0800 Subject: [PATCH] disp: msm: dp: set aux initial status to abort Set the aborted flag during module initialization so the default behavior is to error out on aux transactions. The flag will be reset when there is a hot plug connect and a sink device is actually present. Change-Id: I9e31b9293e817ed951ba5464d403e7178615418f Signed-off-by: Yuan Zhao --- msm/dp/dp_aux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/msm/dp/dp_aux.c b/msm/dp/dp_aux.c index 7d73abe4..ae00856b 100644 --- a/msm/dp/dp_aux.c +++ b/msm/dp/dp_aux.c @@ -689,6 +689,7 @@ static int dp_aux_register(struct dp_aux *dp_aux) aux->drm_aux.name = "sde_dp_aux"; aux->drm_aux.dev = aux->dev; aux->drm_aux.transfer = dp_aux_transfer; + atomic_set(&aux->aborted, 1); ret = drm_dp_aux_register(&aux->drm_aux); if (ret) { DP_ERR("%s: failed to register drm aux: %d\n", __func__, ret);