mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
crypto: hisilicon/sgl - fix the soft sg map to hardware sg
The buffer of the hardware sge needs to be initialized by soft sgl. Signed-off-by: Kai Ye <yekai13@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
197272b8f0
commit
4b95e17b8f
@ -176,6 +176,7 @@ static void sg_map_to_hw_sg(struct scatterlist *sgl,
|
||||
{
|
||||
hw_sge->buf = sg_dma_address(sgl);
|
||||
hw_sge->len = cpu_to_le32(sg_dma_len(sgl));
|
||||
hw_sge->page_ctrl = sg_virt(sgl);
|
||||
}
|
||||
|
||||
static void inc_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl)
|
||||
|
Loading…
Reference in New Issue
Block a user