Skip to content

Commit 68c7f8c

Browse files
Romain Perierherbertx
authored andcommitted
crypto: marvell - Don't copy hash operation twice into the SRAM
No need to copy the template of an hash operation twice into the SRAM from the step function. Fixes: commit 85030c5 ("crypto: marvell - Add support for chai...") Signed-off-by: Romain Perier <[email protected]> Cc: <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 5789163 commit 68c7f8c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/crypto/marvell/hash.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ static void mv_cesa_ahash_std_step(struct ahash_request *req)
172172
for (i = 0; i < digsize / 4; i++)
173173
writel_relaxed(creq->state[i], engine->regs + CESA_IVDIG(i));
174174

175-
mv_cesa_adjust_op(engine, &creq->op_tmpl);
176-
memcpy_toio(engine->sram, &creq->op_tmpl, sizeof(creq->op_tmpl));
177-
178175
if (creq->cache_ptr)
179176
memcpy_toio(engine->sram + CESA_SA_DATA_SRAM_OFFSET,
180177
creq->cache, creq->cache_ptr);

0 commit comments

Comments
 (0)