Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2672295ybh; Fri, 24 Jul 2020 20:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxU28P9q1O/LXIMXJPTAEQ/6CVvfjjLItEm36xEuwQ6ebF108RM6cyGEZuIJzOqykPAos1+ X-Received: by 2002:a17:907:100e:: with SMTP id ox14mr7696549ejb.476.1595648884244; Fri, 24 Jul 2020 20:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595648884; cv=none; d=google.com; s=arc-20160816; b=JIwodLDGhVtDQXKYZ9vJE4DNu/tPNq/V0jWdPijvtU9z/r4RAB9hH+qdHJ9A9YzQmd CkK9zQ0UMr2Jbobdlt+p1roEJE0cnztjCHwV1g2mda7/Q1pF3bYcJIUe3btUpqEGmBQK fmJVZqOGjX2OcD3m/qwGCj4vLAjhihTWTvvj+auOnXuPgfWjGYZXcOl7Mb1yikShZ5fl 7rs1lGu8Ztu2booXspeeMi3QcJCXy4JvYq0e1I1URjHyAgEwpvgqTXyDz0jPYWvVWo3s 1mZp0UhhNcONICVBMqzHD4xc9ER1AAa2XYvWcdlSxngaGQRJbbth27TK4KEvjzUHYPIU /m5Q== 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=UT8KVWHXD161aTWIT9KuYBJae2HbNHmWGV4wI7EYxQI=; b=0LEY+9BAJswJLEp7dh8WnlVKPmFNV8XUKMPDm3irPqryhaMh8ZFWpKbsZ8cbvjoXXF Yc/9C1rHs0AXDa37RRcadRyqrrbWH3hSuTnVwRyR2PEUebEekbaEI9sxZlNlYoYxABw9 6S+SitFZRDRSg1rHOFfj7YbjQkZaoG39dxMBSMC4Ee/lC2BS1bxxNR6qTYvYRKDvVDuI Miq44UEutzQvvYw2ivPoxnJ0/9if9JFtyvwQfA+s4ZVOYusFr10P3QEhJDPhTFkCZFRE Nt8mQvH1d4DOcR3taLkE9mOWtDqllY11uTDJzhS1x+QN0k0eQtc5QyFKHtiDNY5Fz5j9 Ir3A== 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 u24si649019edb.159.2020.07.24.20.47.41; Fri, 24 Jul 2020 20:48:04 -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 S1726973AbgGYDqy (ORCPT + 99 others); Fri, 24 Jul 2020 23:46:54 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8814 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726613AbgGYDqx (ORCPT ); Fri, 24 Jul 2020 23:46:53 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CE7D54D7E46D3653A8A7; Sat, 25 Jul 2020 11:46:49 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Sat, 25 Jul 2020 11:46:41 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH 09/10] crypto: hisilicon/zip - supplement some comments Date: Sat, 25 Jul 2020 11:44:42 +0800 Message-ID: <1595648683-50590-10-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595648683-50590-1-git-send-email-shenyang39@huawei.com> References: <1595648683-50590-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 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 7697fa5..49fad18 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