Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1118199ybh; Thu, 23 Jul 2020 00:24:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBor2gXPnEyfoFmJroJJBPUuYjXcF3gFZNBKnJF1dageOY/hpUYZm4Junp1eebKvWnWPWH X-Received: by 2002:a17:906:26d6:: with SMTP id u22mr3264883ejc.271.1595489056211; Thu, 23 Jul 2020 00:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595489056; cv=none; d=google.com; s=arc-20160816; b=at5VrMT8606KLlAdh/KDn2iIv3LX+fFXHyjPky9spMi98tfWMMUDYpbomH4aEehZzL QgQl4C0z3GjnffpHJy9/+GBbPzuwCoAA5yEf9j5oemHn4ZIEi0AMNWz4MxfxsxqB8MQZ jxSxoC+4xO/hMz3VJoAK+N1YSvYR78MuaUd/GQmcVCi2E0vpFaRfrcwv4PQiTSk6sW5V v8UL1wiNZpaISNmfQb76UNApmIOMM0toWp8DRl304nir0SimAeux7ex2RZOk/eOOJM9A FrK4JWkJz719Mb/UJ/w0/SMsa3We66bEmo7bh2ckoFDKIioa05wa1VdgGJO5yn0PDsz/ gzRw== 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=Cc1RJuzN0JOcUhtnNyg+XK/nCxaDCSgmD6ZvuO/fIG0=; b=FiB0n2OGp3VLe/I1v1Dgw0RjiVaEpbo3AOVvTkdnzHuWgzvH4MGw3UeWYJcPJpm/T1 li+1gtLGwqYbVT0q09D63/E5U/ZFQaCZ/HFoPGbnMba0adWK/izXlu1NitCueGSp+fsj hBWlufOYKy59371TzhUUrSaRcyjq166Sa/5AsnfxGPR+/37ItJx8BangFoyuu6lUP89a npN+beEP7vhXwSwTb6WMWTj+r77/gWErtUMvef4VN6pqQG9XaxCWFBs6+x6ijzamkcna F+H6eTR0RbtTd2tPkyrDajnJAAOqB1rqEMaQ4XB89qHGJlcyN+plyTRPPfZqttEYTnFe vBqg== 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 f7si1062068eds.24.2020.07.23.00.23.52; Thu, 23 Jul 2020 00:24:16 -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 S1725857AbgGWHV6 (ORCPT + 99 others); Thu, 23 Jul 2020 03:21:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8363 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726947AbgGWHV5 (ORCPT ); Thu, 23 Jul 2020 03:21:57 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 27D1B9A9E227E5D1C5C6; Thu, 23 Jul 2020 15:21:52 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 23 Jul 2020 15:21:43 +0800 From: Yang Shen To: , CC: , , Subject: [PATCH v3 03/10] crypto: hisilicon/qm - fix print frequence in hisi_qp_send Date: Thu, 23 Jul 2020 15:19:33 +0800 Message-ID: <1595488780-22085-4-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595488780-22085-1-git-send-email-shenyang39@huawei.com> References: <1595488780-22085-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 e89d9b6..406fca3 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -1983,7 +1983,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