Selaa lähdekoodia

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 vuotta sitten
vanhempi
sitoutus
8ff0c70237
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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);