Skip to content
Commit c114cf7f authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: marvell/cesa - Fix use of sg_pcopy on iomem pointer



The cesa driver mixes use of iomem pointers and normal kernel
pointers.  Sometimes it uses memcpy_toio/memcpy_fromio on both
while other times it would use straight memcpy on both, through
the sg_pcopy_* helpers.

This patch fixes this by adding a new field sram_pool to the engine
for the normal pointer case which then allows us to use the right
interface depending on the value of engine->pool.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 43a942d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment