]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Add pm runtime callback
authorYong Wu <yong.wu@mediatek.com>
Mon, 11 Jan 2021 11:19:00 +0000 (19:19 +0800)
committerWill Deacon <will@kernel.org>
Mon, 1 Feb 2021 11:31:18 +0000 (11:31 +0000)
commit3a32fe88ff2054e8fcd935a108bc7a824f0b7c31
treefbe1c22c5f972108b30b164daba1de25ab12c35e
parent29f1f2f50b6068bfe6ca9fab8febca87c756d6bf
iommu/mediatek: Add pm runtime callback

In pm runtime case, all the registers backup/restore and bclk are
controlled in the pm_runtime callback, Rename the original
suspend/resume to the runtime_suspend/resume.

Use pm_runtime_force_suspend/resume as the normal suspend/resume.
iommu should suspend after iommu consumer devices, thus use _LATE_.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20210111111914.22211-20-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/mtk_iommu.c