]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
iommu/omap: introduce new API for runtime suspend/resume control
authorSuman Anna <s-anna@ti.com>
Wed, 27 Feb 2019 04:01:57 +0000 (22:01 -0600)
committerSuman Anna <s-anna@ti.com>
Sun, 3 Mar 2019 23:39:54 +0000 (17:39 -0600)
commitb8ee97c59fb1bfc68e4c4a9ea2eda91dd70ef830
treeebb03ae0365c18de0d75b99033322b113a0c6535
parent4252fc9bc3522b508d3a74b12b8c9a0be1e3d13f
iommu/omap: introduce new API for runtime suspend/resume control

This patch adds the support for the OMAP IOMMUs to be suspended
during the auto suspend/resume of the OMAP remoteproc devices. The
remote processors are auto suspended after a certain time of idle
or inactivity period. This is done by introducing two new API,
omap_iommu_domain_deactivate() and omap_iommu_domain_activate()
to allow the client users/master devices of the IOMMU devices to
deactivate & activate the IOMMU devices from their runtime
suspend/resume operations. There is no API exposed by the IOMMU
layer at present, and so these new API are added directly in the
OMAP IOMMU driver to minimize framework changes.

The API simply decrements and increments the runtime usage count
of the IOMMU devices and let the context be saved/restored using
the existing runtime pm callbacks.

Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/iommu/omap-iommu.c
include/linux/omap-iommu.h