dmaengine: sun6i: Do not use virt_to_phys
authorSamuel Holland <samuel@sholland.org>
Sun, 24 Apr 2022 17:27:56 +0000 (12:27 -0500)
committerVinod Koul <vkoul@kernel.org>
Thu, 19 May 2022 18:13:41 +0000 (23:43 +0530)
commit9aa48806edb8c37e82532dbc6098b03f6bd4245e
treeaa2989279e6cf47af843c6c02c2b5de0369b131d
parent59e477763d092923f567051e1bbfbb4e04d0dfbf
dmaengine: sun6i: Do not use virt_to_phys

This breaks on RISC-V, because dma_pool_alloc returns addresses which
are not in the linear map. Instead, plumb through the physical address
which is already known anyway.

Acked-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220424172759.33383-3-samuel@sholland.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sun6i-dma.c