crypto: hisilicon/qm - fix use of 'dma_map_single'
authorWeili Qian <qianweili@huawei.com>
Thu, 4 Feb 2021 08:59:35 +0000 (16:59 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 10 Feb 2021 06:55:59 +0000 (17:55 +1100)
commit553d09b3140035cc5f5f60cfcf1088c99bc9b1cf
treeea08067f9ff77c84f4b4c82d169cc9b8bbcf1c1e
parent8db84129d4fffafd732b69f2c5c0e216466165b8
crypto: hisilicon/qm - fix use of 'dma_map_single'

Calling 'dma_map_single' after the data is written to
ensure that the cpu cache and dma cache are consistent.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c