crypto: caam/jr - Remove extra memory barrier during job ring dequeue
authorVakul Garg <vakul.garg@nxp.com>
Tue, 9 Apr 2019 06:38:08 +0000 (06:38 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Apr 2019 14:14:58 +0000 (22:14 +0800)
commitbbfcac5ff5f26aafa51935a62eb86b6eacfe8a49
treef38607a783b0d1fcd81673fe8d3b5ef0312fa9fa
parentf5a2aeb8b254c764772729a6e48d4e0c914bb56a
crypto: caam/jr - Remove extra memory barrier during job ring dequeue

In function caam_jr_dequeue(), a full memory barrier is used before
writing response job ring's register to signal removal of the completed
job. Therefore for writing the register, we do not need another write
memory barrier. Hence it is removed by replacing the call to wr_reg32()
with a newly defined function wr_reg32_relaxed().

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/jr.c
drivers/crypto/caam/regs.h