[PATCH v3 4/6] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer
Chuanhong Guo
gch981213 at gmail.com
Fri Sep 25 04:21:43 EDT 2020
Hi!
On Fri, Sep 25, 2020 at 2:56 PM Ikjoon Jang <ikjn at chromium.org> wrote:
>
> Use dma_alloc_coherent() for bounce buffer instead of kmalloc() to
> make sure the bounce buffer to be allocated within its DMAable range.
I think the introduction of need_bounce can be in its own commit or
at least mentioned here.
>
> Signed-off-by: Ikjoon Jang <ikjn at chromium.org>
>
> ---
>
> (no changes since v1)
There have been a lot of changes since v2 :)
Reviewed-by: Chuanhong Guo <gch981213 at gmail.com>
--
Regards,
Chuanhong Guo
More information about the Linux-mediatek
mailing list