Skip to content

Commit

Permalink
crypto: mv_cesa - the descriptor pointer register needs to be set jus…
Browse files Browse the repository at this point in the history
…t once

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Phil Sutter authored and Herbert Xu committed May 11, 2011
1 parent 042e9e7 commit 99db3ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/crypto/mv_cesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ static void mv_process_current_q(int first_block)
memcpy(cpg->sram + SRAM_CONFIG, &op,
sizeof(struct sec_accel_config));

writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
/* GO */
writel(SEC_CMD_EN_SEC_ACCL0, cpg->reg + SEC_ACCEL_CMD);

Expand Down Expand Up @@ -349,7 +348,6 @@ static void mv_process_hash_current(int first_block)

memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config));

writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);
/* GO */
writel(SEC_CMD_EN_SEC_ACCL0, cpg->reg + SEC_ACCEL_CMD);

Expand Down Expand Up @@ -1063,6 +1061,7 @@ static int mv_probe(struct platform_device *pdev)

writel(SEC_INT_ACCEL0_DONE, cpg->reg + SEC_ACCEL_INT_MASK);
writel(SEC_CFG_STOP_DIG_ERR, cpg->reg + SEC_ACCEL_CFG);
writel(SRAM_CONFIG, cpg->reg + SEC_ACCEL_DESC_P0);

ret = crypto_register_alg(&mv_aes_alg_ecb);
if (ret)
Expand Down

0 comments on commit 99db3ea

Please sign in to comment.