Import A346BXXS5BWL2 kernel source

Android 14
This commit is contained in:
Fede2782 2024-04-28 15:54:40 +02:00
parent 6db4831e98
commit c9de368c35
No known key found for this signature in database
GPG key ID: 1DD0FACD495CE046

View file

@ -1788,8 +1788,7 @@ KERNEL_VERSION(4, 5, 0) > LINUX_VERSION_CODE
*/
for (i = 0; i < faulted_pages; i++) {
dma_addr_t dma_addr =
dma_map_page_attrs(dev, pages[i], 0, PAGE_SIZE,
write ? DMA_BIDIRECTIONAL : DMA_TO_DEVICE,
dma_map_page_attrs(dev, pages[i], 0, PAGE_SIZE, DMA_BIDIRECTIONAL,
DMA_ATTR_SKIP_CPU_SYNC);
if (dma_mapping_error(dev, dma_addr))
@ -1818,8 +1817,7 @@ unwind_dma_map:
dma_addr_t dma_addr = user_buf->dma_addrs[i];
dma_sync_single_for_device(dev, dma_addr, PAGE_SIZE, DMA_BIDIRECTIONAL);
dma_unmap_page_attrs(dev, dma_addr, PAGE_SIZE,
write ? DMA_BIDIRECTIONAL : DMA_TO_DEVICE,
dma_unmap_page_attrs(dev, dma_addr, PAGE_SIZE, DMA_BIDIRECTIONAL,
DMA_ATTR_SKIP_CPU_SYNC);
}
fault_mismatch: