Skip to content

Commit 8c951e9

Browse files
committed
Revert "dma-mapping: MMIO mappings still need phys_to_dma"
This reverts commit 19a2aa9.
1 parent 58d51f0 commit 8c951e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/dma/direct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static inline dma_addr_t dma_direct_map_phys(struct device *dev,
9494
}
9595

9696
if (attrs & DMA_ATTR_MMIO) {
97-
dma_addr = phys_to_dma(dev, phys);
97+
dma_addr = phys;
9898
if (unlikely(!dma_capable(dev, dma_addr, size, false)))
9999
goto err_overflow;
100100
} else {

0 commit comments

Comments
 (0)