crypto: ccree - rate limit debug print
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 1 Jul 2018 07:02:39 +0000 (08:02 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:33:36 +0000 (00:33 +0800)
A debug print about register status post interrupt can happen
quite often. Rate limit it to avoid cluttering the log.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_driver.c

index bd974fe..1ff229c 100644 (file)
@@ -131,8 +131,8 @@ static irqreturn_t cc_isr(int irq, void *dev_id)
        }
 
        if (irr) {
-               dev_dbg(dev, "IRR includes unknown cause bits (0x%08X)\n",
-                       irr);
+               dev_dbg_ratelimited(dev, "IRR includes unknown cause bits (0x%08X)\n",
+                                   irr);
                /* Just warning */
        }