iommu/arm-smmu: Add pm_runtime/sleep ops
The smmu needs to be functional when the respective
master/s using it are active. As there is a device_link
between the master and smmu, the pm runtime ops for the smmu
gets invoked in sync with the master's runtime, thus the
smmu remains powered only when needed.
There are couple of places in the driver during probe,
master attach, where the smmu needs to be clocked without
the context of the master. So doing a pm_runtime_get/put sync
in those places separately.
Signed-off-by:
Sricharan R <sricharan@codeaurora.org>
Loading
Please sign in to comment