Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2977288ybt; Mon, 29 Jun 2020 11:58:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweWi08ComnaLNLXdKcAcj1Q+kipHbjyrtHNbjk1AaMvxgM+gNrYMC6RnCutP8a/P3RJvEJ X-Received: by 2002:a17:906:148a:: with SMTP id x10mr16055188ejc.497.1593457098889; Mon, 29 Jun 2020 11:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593457098; cv=none; d=google.com; s=arc-20160816; b=uxeK5uOP3YcVyil8l7aZv1HQfbWsJbLchqRVPV74xFl9Uvu7ev7YZjHreAqBjWqfSq uYFNySf8N8II6LNjfGA+E4V5+pGXc5c7HtHemT6TKa8cpudPnCCL98p38g5KRmnHeNHo 7SLB4J6h5797tqLN0Xg75T6sh5zYx3Dsg8XAdr9mRWETvjxn35EU7bL/zMwmFnal7mSl BqEuHpokOOpoKrt1peqjaZSa0PKPLmnpeR5GY4M/4DGC3qL2+eaAZcgWhgYhHc9xVx9u fhVzGShBiZV9+YHPvweywZ2EvS9QxjGqnQw6KtIqDNk9CsmGTUf3uE8AlKsvAxFCqAs6 1mPg== 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=a6WKjBTgiDKUFNopXPGsqEAagBNHugvmf2hwNbp3N9M=; b=cX7WEf/Jekdze+2uZJ+qGdeSnt/PsX3ltKdGlo3DG5AFFvG5wyYN1x8mYYMLZRUWNk OQhLK6DmMG9fkS4Y7I4pFBRh+/NSOCbEeUP+tIQSBzuPhZ9qgbB4l66TyjtI0HUJ/LDj KUXvkyIaEmWIBV6FVh3bQTnIUalSbA3R+0kjh+azG2MoXda2IfJG+R7e9TQ+OR6Herkt R7HMNM0EaYVencWf0PNQmJk79z5O25SQCp6CrCxagKZ62/3Ib+SSXmQwc9jqZ5qy/kTZ Grkuw29RsawfACBGUKtE4JdWHuhWUKC8lALRvW0AQtdl39k5wh9a3DoQdg1e2KqW7Bcx HKTg== 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 z16si296664ejw.386.2020.06.29.11.57.55; Mon, 29 Jun 2020 11:58:18 -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 S1729412AbgF2S5I (ORCPT + 99 others); Mon, 29 Jun 2020 14:57:08 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59614 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726920AbgF2S5H (ORCPT ); Mon, 29 Jun 2020 14:57:07 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 3F3DC1C0664F4EBA5BF3; Mon, 29 Jun 2020 19:10:58 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 29 Jun 2020 19:10:45 +0800 From: Yang Shen To: , CC: , , Subject: [PATCH 3/9] crypto: hisilicon/qm - fix print frequence in hisi_qp_send Date: Mon, 29 Jun 2020 19:09:02 +0800 Message-ID: <1593428948-64634-4-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593428948-64634-1-git-send-email-shenyang39@huawei.com> References: <1593428948-64634-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 Signed-off-by: Shukun Tan --- 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