Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3926857ybg; Mon, 21 Oct 2019 00:41:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxG4LLsq3NbEKPC6ptoqfZOqURQ1yWMDBXa4NGhu4wziTVzjBD0/unU1lwy4ZDh/e5r+f4Z X-Received: by 2002:a05:6402:703:: with SMTP id w3mr23249125edx.95.1571643667042; Mon, 21 Oct 2019 00:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571643667; cv=none; d=google.com; s=arc-20160816; b=xlX7yv3lEOn6ng9AiSN0u2XYGlzYxANCTY9MUWblPvN0x5ROHgJt1xX+oT8RT0XvXL 6BcKK+lETebkc9O8PLmAvN5uA+ijuNg3LIXyqoHkSfZthR2vh2igqGPRUA8A728lEBL2 NeeOAgLHxeqsgR81fOV0SVLuy4mYrlIxJPo03WOjYdjjXJCHgJLzRoCHi7RY7ObMxEum QoRnwRFuZWZScUAT4Yu0VPSiirDSo4ds2G9SVqSyvDo0XAqlLQK/HidjuzgQGtbH9559 J3AZiXvyXIuZxc+sYiNzXf4n/E+NXQqNLP857ZtmK0aiP02W5xNbdeJg+uKVg6ZkXCdY JWdw== 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=4/57L3t6JvGUBQg39zm29lCZCvMGUL5knLMBHUki3ys=; b=OIZSvdH/8b4cTuNE36h7tMuveVuY098nsBPakFNsmDHxmZi17BRsL7gH/PC5FGZbpC pC5wg76e0mEFiLldwZJ8ZMfftEYcJrCCkzG18MMTeca7KAT+FGpKomZGlt8/wrga1AkD ZK5Z/OixDOHAc+dtp1mD807YFvUDV1wxEFkfiSbe194/seoIRbDaspNvViT8DBzbopUN X853tufVRzr0DHtOiDpBRzc6TiCmkpwwolEDBZh2MQKKa00Co4mjQWrBK1usRK+ENZ6d G7BXDmqXZUKkbdUBbOXJDJAR+yZjUZLSoekUaS0q6jEbaakzWHsJQt07yWTEn2C+4tGF syDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l45si9910298edc.185.2019.10.21.00.40.35; Mon, 21 Oct 2019 00:41:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726480AbfJUHk3 (ORCPT + 99 others); Mon, 21 Oct 2019 03:40:29 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:57378 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727110AbfJUHk2 (ORCPT ); Mon, 21 Oct 2019 03:40:28 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id CEBF4521A6A4A6144FD; Mon, 21 Oct 2019 15:40:26 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Mon, 21 Oct 2019 15:40:18 +0800 From: Shukun Tan To: , CC: , , Subject: [PATCH 1/4] crypto: hisilicon - tiny fix about QM/ZIP error callback print Date: Mon, 21 Oct 2019 15:41:00 +0800 Message-ID: <1571643663-29593-2-git-send-email-tanshukun1@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571643663-29593-1-git-send-email-tanshukun1@huawei.com> References: <1571643663-29593-1-git-send-email-tanshukun1@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 From: Zhou Wang Tiny fix to make QM/ZIP error callback print clear and right. If one version hardware does not support error handling, we directly print this. And QM is embedded in ZIP, we can use ZIP print only, so remove unnecessary QM print. Signed-off-by: Zhou Wang --- drivers/crypto/hisilicon/qm.c | 9 ++------- drivers/crypto/hisilicon/zip/zip_main.c | 3 +-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index a8ed6990..2c17bf3 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -987,9 +987,6 @@ static int qm_create_debugfs_file(struct hisi_qm *qm, enum qm_debug_file index) static void qm_hw_error_init_v1(struct hisi_qm *qm, u32 ce, u32 nfe, u32 fe, u32 msi) { - dev_info(&qm->pdev->dev, - "QM v%d does not support hw error handle\n", qm->ver); - writel(QM_ABNORMAL_INT_MASK_VALUE, qm->io_base + QM_ABNORMAL_INT_MASK); } @@ -1868,8 +1865,7 @@ void hisi_qm_hw_error_init(struct hisi_qm *qm, u32 ce, u32 nfe, u32 fe, u32 msi) { if (!qm->ops->hw_error_init) { - dev_err(&qm->pdev->dev, "QM version %d doesn't support hw error handling!\n", - qm->ver); + dev_err(&qm->pdev->dev, "QM doesn't support hw error handling!\n"); return; } @@ -1886,8 +1882,7 @@ EXPORT_SYMBOL_GPL(hisi_qm_hw_error_init); int hisi_qm_hw_error_handle(struct hisi_qm *qm) { if (!qm->ops->hw_error_handle) { - dev_err(&qm->pdev->dev, "QM version %d doesn't support hw error report!\n", - qm->ver); + dev_err(&qm->pdev->dev, "QM doesn't support hw error report!\n"); return PCI_ERS_RESULT_NONE; } diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 1b2ee96..5546edc 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -335,8 +335,7 @@ static void hisi_zip_hw_error_set_state(struct hisi_zip *hisi_zip, bool state) if (qm->ver == QM_HW_V1) { writel(HZIP_CORE_INT_DISABLE, qm->io_base + HZIP_CORE_INT_MASK); - dev_info(&qm->pdev->dev, "ZIP v%d does not support hw error handle\n", - qm->ver); + dev_info(&qm->pdev->dev, "Does not support hw error handle\n"); return; } -- 2.7.4