summaryrefslogtreecommitdiff
path: root/drivers/crypto/caam
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2019-02-11 14:46:14 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-22 07:47:26 +0300
commit05bd1beec2748d74cbc41ee476be2af0f91bd2d3 (patch)
tree77a1a0ce44ae386a5c9be0ef6bf77599849c25f9 /drivers/crypto/caam
parentf1657eb99e4a2e03649f57b785e906647cdcc76e (diff)
downloadlinux-05bd1beec2748d74cbc41ee476be2af0f91bd2d3.tar.xz
crypto: caam/qi2 - relax busy polling while enqueuing FDs
Add cpu_relax() in the loop that tries to enqueue the FDs. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r--drivers/crypto/caam/caamalg_qi2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c
index 6a6a508f5fd2..c2c1abc68f81 100644
--- a/drivers/crypto/caam/caamalg_qi2.c
+++ b/drivers/crypto/caam/caamalg_qi2.c
@@ -5277,6 +5277,8 @@ int dpaa2_caam_enqueue(struct device *dev, struct caam_request *req)
&fd);
if (err != -EBUSY)
break;
+
+ cpu_relax();
}
if (unlikely(err)) {