Skip to content

Commit 19feeee

Browse files
sumanannatmlind
authored andcommitted
ARM: OMAP2+: Plug in device_enable/idle ops for IOMMUs
The OMAP IOMMU driver requires the device_enable/idle platform data ops on all the IOMMU devices to be able to enable and disable the clocks after commit db8918f ("iommu/omap: streamline enable/disable through runtime pm callbacks"). Plug in these pdata ops for all the existing IOMMUs through pdata quirks to maintain functionality. Signed-off-by: Suman Anna <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 17a9e5b commit 19feeee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm/mach-omap2/pdata-quirks.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ static struct iommu_platform_data omap3_iommu_pdata = {
8989
.reset_name = "mmu",
9090
.assert_reset = omap_device_assert_hardreset,
9191
.deassert_reset = omap_device_deassert_hardreset,
92+
.device_enable = omap_device_enable,
93+
.device_idle = omap_device_idle,
9294
};
9395

9496
static int omap3_sbc_t3730_twl_callback(struct device *dev,
@@ -424,6 +426,8 @@ static struct iommu_platform_data omap4_iommu_pdata = {
424426
.reset_name = "mmu_cache",
425427
.assert_reset = omap_device_assert_hardreset,
426428
.deassert_reset = omap_device_deassert_hardreset,
429+
.device_enable = omap_device_enable,
430+
.device_idle = omap_device_idle,
427431
};
428432
#endif
429433

0 commit comments

Comments
 (0)