summaryrefslogtreecommitdiff
path: root/drivers/crypto
diff options
context:
space:
mode:
authorKai Ye <yekai13@huawei.com>2021-04-09 12:04:03 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-16 14:16:34 +0300
commit4b95e17b8fcce5a137403f508fc77cad7d014c68 (patch)
treec4f23604f5284cf4625ca84f53a1344208b48ca4 /drivers/crypto
parent197272b8f0bb8de37248a30469262a79edb8e512 (diff)
downloadlinux-4b95e17b8fcce5a137403f508fc77cad7d014c68.tar.xz
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/hisilicon/sgl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/sgl.c b/drivers/crypto/hisilicon/sgl.c
index d04e551d5538..7f11e41385ae 100644
--- a/drivers/crypto/hisilicon/sgl.c
+++ b/drivers/crypto/hisilicon/sgl.c
@@ -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)