Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp347407pxa; Tue, 4 Aug 2020 07:07:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzlqkJrW4d3wfdusyFzrD/dNzQ1RZhnyCI2tl7RBg9yqPUYLoEOcZ9RLVfqEbbR9rtnlnS X-Received: by 2002:a17:906:37d2:: with SMTP id o18mr21008368ejc.162.1596550063009; Tue, 04 Aug 2020 07:07:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596550063; cv=none; d=google.com; s=arc-20160816; b=fMTpG5E/aHywrdCFGSNWyY9D1WHu8IgsYjIdfqW6gnuRqvtMsQtm5S4mxr5nMMfUiU 9G84Rh2vn2LEe5O471nmuD5NDiZx51bR8RNrwO1QOoB4JnFBHkG5Cwf6d9D85kUNBvur uAMcW7O4aknEd624eKiY5ZSdACQBFSGWdQ+QlRJFBJCrJRcOs17NWQskawrV9rbH5BAu ql1p3Qn9vFtEijSabp6qYv4FJ5wuDuj3s2qfkX4lmTqs+HeGWLlxTAWs9KTIfEhnirGG Ce9U1sYTWnJAG6yDVGpT/p2RsllQMkcdUVtnHei0RBLHuMthKrWXhI2ZmMkcpbPkL6c/ hxcA== 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=O4emPdb76jRyoGFuHaVGmXGtYqcxWrYOuuyhtPcLD+nM9gsKnkpGN8H3W4vETYllKa QZh64g0bjBV0ugjMyTW+eMuU9XAfb1W9kHdzaBfBT2Aj92/tFivzDEe++KGF9MAuG+Fw j97kEeoccaGa5kht3qH3gy+wuxsWu2whDJASzUeZQKpxO4e3QkBrQy3k9Hz8vUZ1wmiA ntLcYNpBJkwNoEXiIMBcFuNFHOH6I7fdroS28+XwysLzzTDsPYzQ6veN1DhFGQFYYXLF T24zo3C4hodPqZlVxpEFRDI3NAQfl4bl+Iee+BrhliH4U13cEz9cj2HO4+ERkVvIbqwa rnTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 f12si2372954edx.535.2020.08.04.07.07.20; Tue, 04 Aug 2020 07:07:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728962AbgHDOEM (ORCPT + 99 others); Tue, 4 Aug 2020 10:04:12 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:60726 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728753AbgHDOAt (ORCPT ); Tue, 4 Aug 2020 10:00:49 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id AB3F1CD82F07453596D0; Tue, 4 Aug 2020 22:00:38 +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; Tue, 4 Aug 2020 22:00:30 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH v4 03/10] crypto: hisilicon/qm - fix print frequence in hisi_qp_send Date: Tue, 4 Aug 2020 21:58:23 +0800 Message-ID: <1596549510-2373-4-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1596549510-2373-1-git-send-email-shenyang39@huawei.com> References: <1596549510-2373-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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