瀏覽代碼

Merge "msm: ipa3: Changes not allow ODL pipe setup during SSR"

qctecmdr 3 年之前
父節點
當前提交
0c29e06313
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      drivers/platform/msm/ipa/ipa_v3/ipa_odl.c

+ 5 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_odl.c

@@ -372,6 +372,11 @@ int ipa3_odl_pipe_open(void)
 		return 0;
 	}
 
+	if (atomic_read(&ipa3_ctx->is_ssr)) {
+		IPAERR("SSR in progress ODL pipe configuration not allowed\n");
+		return 0;
+	}
+
 	memset(&holb_cfg, 0, sizeof(holb_cfg));
 	holb_cfg.tmr_val = 0;
 	holb_cfg.en = 1;