mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
Revert "dma-mapping: MMIO mappings still need phys_to_dma"
This reverts commit 19a2aa9921.
This commit is contained in:
@@ -94,7 +94,7 @@ static inline dma_addr_t dma_direct_map_phys(struct device *dev,
|
||||
}
|
||||
|
||||
if (attrs & DMA_ATTR_MMIO) {
|
||||
dma_addr = phys_to_dma(dev, phys);
|
||||
dma_addr = phys;
|
||||
if (unlikely(!dma_capable(dev, dma_addr, size, false)))
|
||||
goto err_overflow;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user