Skip to content

Commit 602dba5

Browse files
kimphillherbertx
authored andcommitted
crypto: talitos - don't set done notification in hot path
IRQ done notification is always set. Remove its explicit assignment from the hot path by including it in the descriptor header template assignment in talitos_cra_init. Signed-off-by: Kim Phillips <kim.phillips@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 5228f0f commit 602dba5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/crypto/talitos.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,6 @@ static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
302302
unsigned long flags;
303303
int head;
304304

305-
/* select done notification */
306-
desc->hdr |= DESC_HDR_DONE_NOTIFY;
307-
308305
spin_lock_irqsave(&priv->chan[ch].head_lock, flags);
309306

310307
if (!atomic_inc_not_zero(&priv->chan[ch].submit_count)) {
@@ -2264,6 +2261,9 @@ static int talitos_cra_init(struct crypto_tfm *tfm)
22642261
/* copy descriptor header template value */
22652262
ctx->desc_hdr_template = talitos_alg->algt.desc_hdr_template;
22662263

2264+
/* select done notification */
2265+
ctx->desc_hdr_template |= DESC_HDR_DONE_NOTIFY;
2266+
22672267
return 0;
22682268
}
22692269

0 commit comments

Comments
 (0)