crypto: caam/qi2 - rate-limit enqueue failure prints
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 11 Feb 2019 11:46:13 +0000 (13:46 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:26 +0000 (12:47 +0800)
Avoid console being flooded with prints in case HW is too busy to accept
new enqueue requests.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi2.c

index ce27c88..6a6a508 100644 (file)
@@ -5280,7 +5280,7 @@ int dpaa2_caam_enqueue(struct device *dev, struct caam_request *req)
        }
 
        if (unlikely(err)) {
-               dev_err(dev, "Error enqueuing frame: %d\n", err);
+               dev_err_ratelimited(dev, "Error enqueuing frame: %d\n", err);
                goto err_out;
        }