iommu/arm-smmu: Remove 'qcom,power-always-on' property for SMMU

The commit 8ffa6450ba ("iommu/arm-smmu: Add support for not removing
SMMU power votes") add the support for not removing the power votes of
smmu. It requires 'qcom,power-always-on' in smmu dt property to enable
this support which is currently enabled only for gpu smmu. And this
makes the clients of the SMMU to know If this dt property is enabled to
make decissions in their drivers which is not directly available.

Since there exists a device with atomic domain attached to apps smmu
which will make power resources always on, this separate dt property to
enable power resources for specific SMMU is not required. Thus remove
the 'qcom,power-always-on' property which makes power resources of
SMMU's as always ON when CONFIG_ARM_SMMU_POWER_ALWAYS_ON is enabled.

Change-Id: I2ee1d330f5c1c65474fea7d6b2a9389ae3cf085d
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
This commit is contained in:
Charan Teja Reddy 2021-08-17 14:59:37 +05:30 • committed by Gerrit - the friendly Code Review server
commit eed034c55c

View file

@ -5115,9 +5115,9 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev)
* management code in GKI results in slow unmap calls. To alleviate
* that, we can remove the latency incurred by enabling/disabling the
* power resources, by always keeping them on.
*
*/
if (IS_ENABLED(CONFIG_ARM_SMMU_POWER_ALWAYS_ON) &&
of_property_read_bool(dev->of_node, "qcom,power-always-on"))
if (IS_ENABLED(CONFIG_ARM_SMMU_POWER_ALWAYS_ON))
arm_smmu_power_on(smmu->pwr);
/*
@ -5176,8 +5176,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
arm_smmu_power_off(smmu, smmu->pwr);
/* Remove the extra reference that was taken in the probe function */
if (IS_ENABLED(CONFIG_ARM_SMMU_POWER_ALWAYS_ON) &&
of_property_read_bool(pdev->dev.of_node, "qcom,power-always-on"))
if (IS_ENABLED(CONFIG_ARM_SMMU_POWER_ALWAYS_ON))
arm_smmu_power_off(smmu, smmu->pwr);
arm_smmu_exit_power_resources(smmu->pwr);