Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1867567pxa; Sun, 23 Aug 2020 20:17:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywbpTreYtYaQr6Hi9ec+VnRQCi+ev7lQltrF5jwWeNY5ICLaRzbo4+Lg9UW8TXCqvda0iO X-Received: by 2002:a05:6402:b23:: with SMTP id bo3mr3629799edb.333.1598239053187; Sun, 23 Aug 2020 20:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598239053; cv=none; d=google.com; s=arc-20160816; b=keyI8Cao/yYazXG8+/wPU3Es8vYZMNH/nRnT3U1C7hRnqsez/iD4hiBMZlDzUgZfJX EEB013CL1YVLA16avOBtDlcidF67fiz5lTqdil3CiqUFRgmVBRJCsyGl/8iS/QwvxREK WyQ83P0G8htbFkhwFyYZhlEQKhRjh5LnqI15VZDsZl9Xln1F+aiDmM/P1fSKvKp0voqo omyFunBwHz6FTSvzejaRjs0rVys45+GUoZnVBkLpP/w9TOEOMYfI3C0hqsX7akV7W1aC 6dYDKzU99F8yFBWu4gn66zxowTQdJK1XgI8GmCw7G90UBssQ69pkosqTwxSQR/HsNLx0 idKw== 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=bsEhfM3mz4ubDYQM9dleVYyo1w5wVdf1FnRD/8Qb9SsaQSzQSWgp53GiKgfDd/8c6e zbAMiNJSA83PqQyLpI03CyDwbPrK01sHLxYILpsJil7/qugxjCZlvXpIYYIg7HVvh8Gv KQHm3YVsYXQpjujFUxootUI79i2q2y7I2R2TsFQyfEga2TIxBfGG3pyBxC3BIqRNT4Di fD2wR9X8laC+DOYZe3zeMBqPgc2o3FVDEWoFb8OzOLR3/AnNydoK0SvNh9KEITr3dzbi CJd5Qdtfxp7Qd+nhblyHfSKSpEfoz5lE5CB65Z8GCz5FUQJEAiuUdFGzktAbqk5CwsSs FfGQ== 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 bn22si1265240ejb.183.2020.08.23.20.17.10; Sun, 23 Aug 2020 20:17:33 -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 S1728161AbgHXDOg (ORCPT + 99 others); Sun, 23 Aug 2020 23:14:36 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43150 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728005AbgHXDO2 (ORCPT ); Sun, 23 Aug 2020 23:14:28 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A002B5F3E3C19C7C41B4; Mon, 24 Aug 2020 11:14:24 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 24 Aug 2020 11:14:16 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH RESEND 09/10] crypto: hisilicon/zip - supplement some comments Date: Mon, 24 Aug 2020 11:11:48 +0800 Message-ID: <1598238709-58699-10-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1598238709-58699-1-git-send-email-shenyang39@huawei.com> References: <1598238709-58699-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