Re: [PATCH 2/4] crypto: cavium - Fix the parameter of dma_unmap_sg()

2021-03-03 Thread chenxiang (M)
Hi Herbert, 在 2021/3/3 16:59, Herbert Xu 写道: On Tue, Feb 09, 2021 at 02:59:23PM +0800, chenxiang wrote: From: Xiang Chen For function dma_unmap_sg(), the parameter should be number of elements in the scatterlist prior to the mapping, not after the mapping. So fix this usage. Signed-off-by:

Re: [PATCH 0/4] Fix the parameter of dma_map_sg()

2021-02-19 Thread chenxiang (M)
Ping... 在 2021/2/9 14:59, chenxiang 写道: From: Xiang Chen According to Documentation/core-api/dma-api-howto.rst, the parameters of dma_unmap_sg() must be the same as those which are passed in to the scatter/gather mapping API. But for some drivers under crypto, the parameter of dma_unmap_sg()