summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-01-23 21:44:38 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2020-01-23 21:44:38 -0800
commitf3ea6791c730c1084ac30bb3695a6b2a5e27bea2 (patch)
tree9f5f8b39c303f1ac5f01af6dc85cc9609f06880b
parent57d865b12cf74951a98eadad9329924704740c19 (diff)
parent5e315a0b7bf30a0cc81ad5cfd6c5ec873ef89f3f (diff)
downloaddisplay-drivers-f3ea6791c730c1084ac30bb3695a6b2a5e27bea2.tar.gz
Merge "disp: rotator: update iommu domain info during rotator probe"
-rw-r--r--rotator/sde_rotator_smmu.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/rotator/sde_rotator_smmu.c b/rotator/sde_rotator_smmu.c
index ac1d7821..14669fdf 100644
--- a/rotator/sde_rotator_smmu.c
+++ b/rotator/sde_rotator_smmu.c
@@ -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__
@@ -432,13 +432,19 @@ int sde_smmu_secure_ctrl(int enable)
void sde_smmu_device_create(struct device *dev)
{
struct device_node *parent, *child;
+ struct sde_rot_data_type *mdata = sde_rot_get_mdata();
parent = dev->of_node;
for_each_child_of_node(parent, child) {
- if (of_device_is_compatible(child, SMMU_SDE_ROT_SEC))
+ if (of_device_is_compatible(child, SMMU_SDE_ROT_SEC)) {
of_platform_device_create(child, NULL, dev);
- else if (of_device_is_compatible(child, SMMU_SDE_ROT_UNSEC))
+ mdata->sde_smmu
+ [SDE_IOMMU_DOMAIN_ROT_SECURE].domain_attached = true;
+ } else if (of_device_is_compatible(child, SMMU_SDE_ROT_UNSEC)) {
of_platform_device_create(child, NULL, dev);
+ mdata->sde_smmu
+ [SDE_IOMMU_DOMAIN_ROT_UNSECURE].domain_attached = true;
+ }
}
}