Skip to content
Unverified Commit a1daaa99 authored by Ikjoon Jang's avatar Ikjoon Jang Committed by Mark Brown
Browse files

spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer



Use dma_alloc_coherent() for bounce buffer instead of kmalloc() to
make sure the bounce buffer to be allocated within its DMAable range.

Signed-off-by: default avatarIkjoon Jang <ikjn@chromium.org>
Link: https://lore.kernel.org/r/20201006155010.v5.2.I06cb65401ab5ad63ea30c4788d26633928d80f38@changeid
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9935b612
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment