Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp380135ybt; Wed, 1 Jul 2020 00:22:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxbhNF/PZfIyweZMU8xP0kxoiCwvzDYaSv3itIEy7v+I7pfhaFlPpJy05pQ3uMFNgtpCWi X-Received: by 2002:a05:6402:1a42:: with SMTP id bf2mr20816929edb.292.1593588135227; Wed, 01 Jul 2020 00:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593588135; cv=none; d=google.com; s=arc-20160816; b=Y4hxP7qg3yfTZGzXpvsZpVUKuXw/AxrhC/dR2baCoEqosIPuzrwjdcjVffydhLjSdD +Y7y9WkjOBl7ldv6cwmIG3DWU2fZPDDYLPbEM0v8ForWFWgLUSqtbscuzd/hbB3Ddhl0 MNMUYj/c4VAifSZu/QcIaAVeqAhc6nvYsrm0v//GISv7LM5l0DROax0TB+bJN+N2cj9v VmTjRnP+1d2tefMCISbS9m2hESXyd7wbaMruoxLrT7VkX0OoZqPaB+f4cd5pMwp6DAGr SfWPqA41mEmIMg6JcKMLTVQSq4DtTKqFAtTalkUILsvl0hAtkqk6MIt18J/lAHSR9ghl EF5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=oQ9hlmBJHfSYgQvUYY6uT1coFuxtIhFvpOnEuDendws=; b=fys8HJ5TGgNOqE7LeMYeu/vCWlacFs0LW5TjSIoCiLY9AcJUWhn5q8+CMP2g6Ev1iu fLL4AVS9uVr6ivoH9eTog4Yj2/JtvkaBrbWWTt28z4qxMa6/teSZ11NR7EyJg9SSt+7L T9ESDKx1DS7cUyOS0IbefyIqMRQdOr+2skdRRBf8OU4ptlwYdrI8XUhjtlbFye76vuUU 9XqZ3g+DbtotU70PX1ZvneNgBm8vtLX8lrxGc52QM1cO6dCcxwVMSsHwJsSeHXNKONMB R7WZwPhspox251rhObQZQgho/77lVPYLMVNPZWESC4n0UW9uZD+uAkGqEL8+rk9xASvV vzeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si3223778edr.390.2020.07.01.00.21.52; Wed, 01 Jul 2020 00:22:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728143AbgGAHVr (ORCPT + 99 others); Wed, 1 Jul 2020 03:21:47 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57412 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728130AbgGAHVq (ORCPT ); Wed, 1 Jul 2020 03:21:46 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E705C6CDF4AF67AB7E91; Wed, 1 Jul 2020 15:21:41 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Wed, 1 Jul 2020 15:21:31 +0800 From: Yang Shen To: , CC: , , Subject: [Patch v2 3/9] crypto: hisilicon/qm - fix print frequence in hisi_qp_send Date: Wed, 1 Jul 2020 15:19:49 +0800 Message-ID: <1593587995-7391-4-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593587995-7391-1-git-send-email-shenyang39@huawei.com> References: <1593587995-7391-1-git-send-email-shenyang39@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Requests will be sent continuously as resetting, which will cause 'printk' flooding. Using 'dev_info_ratelimited' can solve this problem well. Fixes: b67202e8ed30("crypto: hisilicon/qm - add state machine for QM") Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/qm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 79d17a0..095ebf0 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -1992,7 +1992,7 @@ int hisi_qp_send(struct hisi_qp *qp, const void *msg) if (unlikely(atomic_read(&qp->qp_status.flags) == QP_STOP || atomic_read(&qp->qm->status.flags) == QM_STOP || qp->is_resetting)) { - dev_info(&qp->qm->pdev->dev, "QP is stopped or resetting\n"); + dev_info_ratelimited(&qp->qm->pdev->dev, "QP is stopped or resetting\n"); return -EAGAIN; } -- 2.7.4