Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3050244pxk; Mon, 7 Sep 2020 01:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOuFIO4OOyF3mDKArFSo4T4Wm1pOXWEnQmJtKm81xc1rYwYM7bGE/VKr+3yeM1D8+3Rf2X X-Received: by 2002:a17:906:150b:: with SMTP id b11mr19826057ejd.234.1599467171903; Mon, 07 Sep 2020 01:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599467171; cv=none; d=google.com; s=arc-20160816; b=qz6yHgkckrRCoLW2ucGKxkAoZK9ESz95sjWyGCEPD6tyO4nTAHVLoEhSF0RHKz296Q LBVXIOuTrG5vhBQ7s2+fkJTCiY2TlsmD4FxDTwVA+94nG6mNO5vKbVQP9b/eDTA4sAxf vqzIzGUCN0yjAWEgYES/zTa8olKzLmUHQsZfc5A1H0i/ofV95f85pkDVypG4gvWi9CIv brUpowYnCMT2AMrTkBk9gbEe5mLY37jonLYjYsecjo2R8Bu/mbU9YpO69eYMmXpw/nfF 2BHwvopUHR7kzZXuQKfIyZ02MmhSIwXGek8R/g/pY+1wirAegqf+CQlKIfPQsvFr9M9k UU9A== 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=5nFMRb9ovkBJaGO7bvhp1DY4u4i7rOZ3l5mj6MYDAkg=; b=WTQwftRzm44cwwfuJvIGaiggwI0Vv2v47rGa2MBzLVvR4pVcuJH+ZARSruLwfdtudx MTlt6SOmKbYgLaa4GV2HQdDHeVC9znr1tBF60R0sEeDn8slXNYJcJUch3Tw51RwS+PwM fqT3c+Go+t6y7LiW5dThHcQ5MVULWi1ul9yZQPmONCiwf3Ulgq+jjMAn/1P9oLkGatmF UVULJ6a14jprWDZ0iXAAKGvjjYEWmIjJkVNoJMgpXtTE6K3z1grwRVsc+kgD+taOKBa+ SRTpmn7Oxf7KTXAJkZF3z+uSTSjbFUxXxlQbucU8chVha99/Xzr13DZRuYXgFVMaGnBs q+8w== 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 l24si3770300eji.478.2020.09.07.01.25.48; Mon, 07 Sep 2020 01:26:11 -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 S1728029AbgIGIYl (ORCPT + 99 others); Mon, 7 Sep 2020 04:24:41 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:10780 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727952AbgIGIYj (ORCPT ); Mon, 7 Sep 2020 04:24:39 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C57BA7D37C42C6534C9F; Mon, 7 Sep 2020 16:24:34 +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, 7 Sep 2020 16:24:26 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH v2 09/10] crypto: hisilicon/zip - supplement some comments Date: Mon, 7 Sep 2020 16:22:01 +0800 Message-ID: <1599466922-10323-10-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599466922-10323-1-git-send-email-shenyang39@huawei.com> References: <1599466922-10323-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 Supplement some comments. Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index dddb51d..d077cc4 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -285,7 +285,7 @@ static int hisi_zip_set_user_domain_and_cache(struct hisi_qm *qm) writel(HZIP_DECOMP_CHECK_ENABLE | HZIP_ALL_COMP_DECOMP_EN, base + HZIP_CLOCK_GATE_CTRL); - /* enable sqc writeback */ + /* enable sqc,cqc writeback */ writel(SQC_CACHE_ENABLE | CQC_CACHE_ENABLE | SQC_CACHE_WB_ENABLE | CQC_CACHE_WB_ENABLE | FIELD_PREP(SQC_CACHE_WB_THRD, 1) | FIELD_PREP(CQC_CACHE_WB_THRD, 1), base + QM_CACHE_CTL); @@ -358,7 +358,7 @@ static int current_qm_write(struct ctrl_debug_file *file, u32 val) if (val > qm->vfs_num) return -EINVAL; - /* Calculate curr_qm_qp_num and store */ + /* According PF or VF Dev ID to calculation curr_qm_qp_num and store */ if (val == 0) { qm->debug.curr_qm_qp_num = qm->qp_num; } else { -- 2.7.4