diff options
author | Paul Hunt <hunt@ti.com> | 2012-07-19 12:06:16 -0500 |
---|---|---|
committer | Xavier Boudet <x-boudet@ti.com> | 2012-08-16 14:58:13 +0200 |
commit | 9006ca32e7c5edc278662106698d3f67284582c5 (patch) | |
tree | 7ecd39189ee532f2abf25e3f3db5625fb68e57cf /arch | |
parent | e3400e41e2f7efcb91818f34652f6d7477ea6d5d (diff) |
omap: iommu: eliminate bogus save/restore code
Certain IOMMU registers must be reprogrammed after
the enclosing power domain goes to OSWR or OFF.
This patch eliminates the mindless copying of 256
bytes from/to the IOMMU register address range.
Signed-off-by: Paul Hunt <hunt@ti.com>
Signed-off-by: Fernando Guzman Lugo <fernando.lugo@ti.com>
Signed-off-by: Subramaniam Chanderashekarapuram <subramaniam.ca@ti.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/iommu2.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/mach-omap2/iommu2.c b/arch/arm/mach-omap2/iommu2.c index 83b3a947d363..be2848355c51 100644 --- a/arch/arm/mach-omap2/iommu2.c +++ b/arch/arm/mach-omap2/iommu2.c @@ -304,32 +304,6 @@ out: return p - buf; } -static void omap2_iommu_save_ctx(struct omap_iommu *obj) -{ - int i; - u32 *p = obj->ctx; - - for (i = 0; i < (MMU_REG_SIZE / sizeof(u32)); i++) { - p[i] = iommu_read_reg(obj, i * sizeof(u32)); - dev_dbg(obj->dev, "%s\t[%02d] %08x\n", __func__, i, p[i]); - } - - BUG_ON(p[0] != IOMMU_ARCH_VERSION); -} - -static void omap2_iommu_restore_ctx(struct omap_iommu *obj) -{ - int i; - u32 *p = obj->ctx; - - for (i = 0; i < (MMU_REG_SIZE / sizeof(u32)); i++) { - iommu_write_reg(obj, p[i], i * sizeof(u32)); - dev_dbg(obj->dev, "%s\t[%02d] %08x\n", __func__, i, p[i]); - } - - BUG_ON(p[0] != IOMMU_ARCH_VERSION); -} - static void omap2_cr_to_e(struct cr_regs *cr, struct iotlb_entry *e) { e->da = cr->cam & MMU_CAM_VATAG_MASK; @@ -360,8 +334,6 @@ static const struct iommu_functions omap2_iommu_ops = { .get_pte_attr = omap2_get_pte_attr, - .save_ctx = omap2_iommu_save_ctx, - .restore_ctx = omap2_iommu_restore_ctx, .dump_ctx = omap2_iommu_dump_ctx, }; |