Skip to content

Commit

Permalink
Fix bad mapping call for new kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
slacrherbst committed Feb 14, 2024
1 parent dd033bf commit 8743fe5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions common/driver/dma_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,17 +906,7 @@ int Dma_Mmap(struct file *filp, struct vm_area_struct *vma) {

// Coherent buffer
if ( dev->cfgMode & BUFF_COHERENT ) {

// Avoid mapping warnings for x86
#if defined(dma_mmap_coherent) && (! defined(CONFIG_X86))
ret = dma_mmap_coherent(dev->device,vma,buff->buffAddr,buff->buffHandle,dev->cfgSize);
#else
ret = remap_pfn_range(vma, vma->vm_start,
virt_to_phys((void *)buff->buffAddr) >> PAGE_SHIFT,
vsize,
vma->vm_page_prot);
#endif

}

// Streaming buffer type or ARM ACP
Expand Down

0 comments on commit 8743fe5

Please sign in to comment.