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

2021-03-26 Thread Herbert Xu
On Tue, Mar 16, 2021 at 09:55:22AM +0800, chenxiang wrote: > 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

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

2021-03-15 Thread 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() is number of elements after mapping. So fix