From patchwork Sun Jul 1 07:02:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 140693 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2689579ljj; Sun, 1 Jul 2018 00:04:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfi+ny7soKRSnv4zgfMoJORHC/HN4Lt03rShlh7gMKhGT9jxo+6MXYbX0WFP4aETVmgw6bi X-Received: by 2002:aa7:8004:: with SMTP id j4-v6mr20657988pfi.174.1530428640868; Sun, 01 Jul 2018 00:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530428640; cv=none; d=google.com; s=arc-20160816; b=LL+lrj3/J3/K+oX7iz0iLlYZjp7UrHZ3njX2lIA/jPE3P8IZXj2hdzT0yMUqQxMdvx Nqn3vWv56zCB9ZFej8h+27r2a0CdDfm1yuJ6bmrTZbTmSxVKEnYDrXMsX8uJB6pDXM2M ttYxAYFfeHEStj8U1hQaRP2LJYzt2yz5CB4mv1HfzcRK6ZzGQTA1iHeoZL8/9aWLbQP6 CEP+NZUDsKugAole0smbdZg1DnYgMyRKZDFUANB+i9JINwSQ0VPhjrEbrdDpMGImNUr5 r2LfvCmiO+ARkyybDxZ/fYcVAguxOwp7DbPMbZ4XpFjfuDs3KSZSRMPjDjVd+UBpbkp/ 801g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=yepKTStayGr49QyhTc8t6NTW8pVPYnaUZ1Gf6aQ8SEg=; b=hENnk1i8+ae68kukIqVZAFHTvT4wFPZkyxCzXLxIayRjm31pboQeVTQbysFdCJi8Iw vq5wfcOqQe9CObpdR7MFgw8tjAdBjEHtuRTYgzCmiBqw11mmU2htr+mmzzgZ29Y4RDIO heguF9V9bRhT1tiyZXfg9ARdMOAPezvg32IulT95h7W3hCiMlivymjvmk69jJmVmuClR ZlrdSySNUcAv57q4ZgJOPCEVzklV8xI0n7yr+aj51SzfCQWGzOSoEwEIL4qPpPCLe99n cKf2Cc1HqKZsAH9VdyQwGXLIhZ8KlZ39ESSoa+3tFPK8MGVZUpHsD1S6bHf6r5MCU2CR PY1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si13052711plz.217.2018.07.01.00.04.00; Sun, 01 Jul 2018 00:04:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbeGAHDx (ORCPT + 1 other); Sun, 1 Jul 2018 03:03:53 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47378 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752175AbeGAHDt (ORCPT ); Sun, 1 Jul 2018 03:03:49 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 621661529; Sun, 1 Jul 2018 00:03:49 -0700 (PDT) Received: from sugar.benyossef.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 863193F318; Sun, 1 Jul 2018 00:03:47 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , Hadar Gat , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] crypto: ccree: rate limit debug print Date: Sun, 1 Jul 2018 08:02:39 +0100 Message-Id: <1530428560-4440-7-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530428560-4440-1-git-send-email-gilad@benyossef.com> References: <1530428560-4440-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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 Reported-by: Geert Uytterhoeven --- drivers/crypto/ccree/cc_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 Tested-by: Geert Uytterhoeven diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index bd974fe..1ff229c 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -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 */ }