From: Horia Geantă Date: Mon, 11 Feb 2019 11:46:14 +0000 (+0200) Subject: crypto: caam/qi2 - relax busy polling while enqueuing FDs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=05bd1beec2748d74cbc41ee476be2af0f91bd2d3;p=openwrt%2Fstaging%2Fblogic.git 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ă Signed-off-by: Herbert Xu --- 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)) {