crypto: fsl: blob: Flush dcache range for destination address
authorBreno Lima <breno.lima@nxp.com>
Thu, 25 Mar 2021 09:30:16 +0000 (17:30 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 07:18:29 +0000 (09:18 +0200)
commita30798113c6f5919708cc849798a583d6e5aad53
tree8bbe7fa91f86232739a85b055645bbcd88189fde
parent2c0dcc5de6416510e8365f5e37de46c7a98d9a7e
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>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/crypto/fsl/fsl_blob.c