Commit 99db3eacac81e50225d8a3571e32d692428f6920

Authored by Phil Sutter
Committed by Herbert Xu
1 parent 042e9e7356

crypto: mv_cesa - the descriptor pointer register needs to be set just once

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/crypto/mv_cesa.c
... ... @@ -275,7 +275,6 @@
275 275 memcpy(cpg->sram + SRAM_CONFIG, &op,
276 276 sizeof(struct sec_accel_config));
277 277  
278   - writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
279 278 /* GO */
280 279 writel(SEC_CMD_EN_SEC_ACCL0, cpg->reg + SEC_ACCEL_CMD);
281 280  
... ... @@ -349,7 +348,6 @@
349 348  
350 349 memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config));
351 350  
352   - writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
353 351 /* GO */
354 352 writel(SEC_CMD_EN_SEC_ACCL0, cpg->reg + SEC_ACCEL_CMD);
355 353  
... ... @@ -1063,6 +1061,7 @@
1063 1061  
1064 1062 writel(SEC_INT_ACCEL0_DONE, cpg->reg + SEC_ACCEL_INT_MASK);
1065 1063 writel(SEC_CFG_STOP_DIG_ERR, cpg->reg + SEC_ACCEL_CFG);
  1064 + writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
1066 1065  
1067 1066 ret = crypto_register_alg(&mv_aes_alg_ecb);
1068 1067 if (ret)