disp: rotator: remove setting secure domain attribute at probe

This change removes setting attribute call at probe since it gets
pre-initialized from smmu.

Change-Id: I8c434e9d88ecf36e0cf033798c52613e14e2faba
Signed-off-by: Yashwanth <yvulapu@codeaurora.org>
This commit is contained in:
Yashwanth
2019-12-12 18:49:07 +05:30
committed by Gerrit - the friendly Code Review server
부모 20a7886cc5
커밋 f4dc9fb0dc

파일 보기

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "%s: " fmt, __func__
@@ -601,17 +601,6 @@ int sde_smmu_probe(struct platform_device *pdev)
return -EINVAL;
}
if (smmu_domain.domain == SDE_IOMMU_DOMAIN_ROT_SECURE) {
int secure_vmid = VMID_CP_PIXEL;
rc = iommu_domain_set_attr(sde_smmu->rot_domain,
DOMAIN_ATTR_SECURE_VMID, &secure_vmid);
if (rc) {
SDEROT_ERR("couldn't set secure pixel vmid\n");
goto release_mapping;
}
}
if (!dev->dma_parms)
dev->dma_parms = devm_kzalloc(dev,
sizeof(*dev->dma_parms), GFP_KERNEL);
@@ -629,8 +618,6 @@ int sde_smmu_probe(struct platform_device *pdev)
smmu_domain.domain);
return 0;
release_mapping:
sde_smmu->rot_domain = NULL;
bus_client_destroy:
sde_reg_bus_vote_client_destroy(sde_smmu->reg_bus_clt);
sde_smmu->reg_bus_clt = NULL;