Re: [PATCH v3 4/6] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer

From: Chuanhong Guo
Date: Fri Sep 25 2020 - 04:21:56 EST


Hi!

On Fri, Sep 25, 2020 at 2:56 PM Ikjoon Jang <ikjn@xxxxxxxxxxxx> 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@xxxxxxxxxxxx>
>
> ---
>
> (no changes since v1)

There have been a lot of changes since v2 :)

Reviewed-by: Chuanhong Guo <gch981213@xxxxxxxxx>
--
Regards,
Chuanhong Guo