浏览代码

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 <[email protected]>
Yuan Zhao 5 年之前
父节点
当前提交
8ff0c70237
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      msm/dp/dp_aux.c

+ 1 - 0
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);