MLK-21420 crypto: fsl: blob: Flush dcache range for destination address
authorBreno Lima <breno.lima@nxp.com>
Tue, 9 Apr 2019 02:48:11 +0000 (23:48 -0300)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:21 +0000 (04:28 -0700)
commitec828953801ee64c4def8133fd5b3d199a65bc92
treefcd4fb596d55bf4667aa90d495eb69b9e647ac6c
parent7ee050afb5bf380ac58dcf8d9d29e315400992e3
MLK-21420 crypto: fsl: blob: Flush dcache range for destination address

The blob command is not working on i.MX7D, i.MX8MQ and i.MX8MM
devices.

Due to different cache management it's necessary to flush dcache
range for destination address so data can be available in memory.

Add necessary operations in blob_encap() and blob_decap() functions.

Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 639e5c15816c3eea0d4904a72ad175627be043d8)
drivers/crypto/fsl/fsl_blob.c