]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Move hw_init into attach_device
authorYong Wu <yong.wu@mediatek.com>
Mon, 11 Jan 2021 11:18:57 +0000 (19:18 +0800)
committerWill Deacon <will@kernel.org>
Mon, 1 Feb 2021 11:31:17 +0000 (11:31 +0000)
commita7df1fa8bc1e4a6b6ac33897d596cac8a258c6f8
tree011d5ea8f81b3315d86ff8490887ead0802768cc
parent537bab522d19772502ede18ea08546c43f6e5850
iommu/mediatek: Move hw_init into attach_device

In attach device, it will update the pagetable base address register.
Move the hw_init function also here. Then it only need call
pm_runtime_get/put one time here if m4u has power domain.

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