瀏覽代碼

msm: ipa: Get device pointers if smmu is disabled

If arm-smmu is not configured, smmu cb will not be
probed, still need to get pdev and uc_pdev.

Signed-off-by: Cheng Zeng <[email protected]>
Cheng Zeng 3 年之前
父節點
當前提交
ee204109cc
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa.c

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa.c

@@ -10708,6 +10708,8 @@ static int ipa3_attach_to_smmu(void)
 			}
 		}
 	} else {
+		ipa3_ctx->pdev = &ipa3_ctx->master_pdev->dev;
+		ipa3_ctx->uc_pdev = &ipa3_ctx->master_pdev->dev;
 		IPADBG("smmu is disabled\n");
 	}
 	return 0;