Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions mmngr_drv/mmngr/mmngr-module/files/mmngr/drv/mmngr_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,17 +1749,25 @@ static int mm_probe(struct platform_device *pdev)
if (p == NULL)
return -1;

dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));

#ifdef IPMMU_MMU_SUPPORT
if (!rcar_gen3_ipmmu) {
pr_err("%s MMD ERROR\n", __func__);
return -1;
}

dma_set_mask_and_coherent(dev, DMA_BIT_MASK(40));
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(40));
if (ret) {
pr_err("MMD mm_init ERROR unable to set DMA mode: %d.\n", ret);
return -1;
}
ipmmu_mmu_startup();
ipmmu_mmu_initialize();
#else
ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
if (ret) {
pr_err("MMD mm_init ERROR unable to set DMA mode: %d.\n", ret);
return -1;
}
#endif

misc_register(&misc);
Expand Down