[PATCH v4 4/4] OMAP3/4: iommu: adapt to runtime pm

Felipe Contreras felipe.contreras at gmail.com
Thu Dec 15 19:53:21 EST 2011


On Thu, Dec 15, 2011 at 6:18 AM, Omar Ramirez Luna <omar.ramirez at ti.com> wrote:
> Use runtime PM functionality interfaced with hwmod enable/idle
> functions, to replace direct clock operations, reset and sysconfig
> handling.
>
> Removed clk handling during interrupt, given that in order to receive one,
> the device should be powered on in advance. Now doing pm_runtime_get/put
> on iommu_enable/disable so it doesn't rely on others to keep the clocks on.
>
> Signed-off-by: Omar Ramirez Luna <omar.ramirez at ti.com>
> ---
>  arch/arm/mach-omap2/iommu2.c             |   17 -----------
>  arch/arm/mach-omap2/omap-iommu.c         |    1 -
>  arch/arm/plat-omap/include/plat/iommu.h  |    2 -
>  arch/arm/plat-omap/include/plat/iommu2.h |    2 -
>  drivers/iommu/omap-iommu.c               |   44 ++++++++++++-----------------
>  5 files changed, 18 insertions(+), 48 deletions(-)

Shouldn't pm_runtime_enable() be called in omap_iommu_init(), and
omap_iommu_probe() call pm_runtime_get_sync()/put() on the sections
where the device should be active?

Cheers.

-- 
Felipe Contreras



More information about the linux-arm-kernel mailing list