summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2019-02-11 12:46:14 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-22 05:47:26 +0100
commit05bd1beec2748d74cbc41ee476be2af0f91bd2d3 (patch)
tree77a1a0ce44ae386a5c9be0ef6bf77599849c25f9 /drivers/crypto/caam
parentcrypto: caam/qi2 - rate-limit enqueue failure prints (diff)
downloadlinux-05bd1beec2748d74cbc41ee476be2af0f91bd2d3.tar.xz
linux-05bd1beec2748d74cbc41ee476be2af0f91bd2d3.zip
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)) {