Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp502174ybt; Fri, 26 Jun 2020 04:54:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqaxYYh44xoPofVV6nrioowQihndUN3cKDy4GRxmyrOTIHP89HJRcfd3HJAoG5keXXiAkA X-Received: by 2002:a17:906:5243:: with SMTP id y3mr2325774ejm.193.1593172465412; Fri, 26 Jun 2020 04:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593172465; cv=none; d=google.com; s=arc-20160816; b=0MvJpnxDUATP3fvWPVFIEiVS8PMNyp1l/wii0LUWygqzwKbqBvvAS+SFuSXbWLHDsu dhR2rZbbUd/a1xK0wVgqiznr5x5LirxnZAp3kZEEcDp04yDvhWk0Jhqy4BOTzvucLHOo P9h7X2pClXmpjywrul5dsXZMYKjZZHkoPIzrnKxIJQybXP6+wwvH56IpdOiJWs/0d5Je EaGmUZq0ofCLS6eUXUDv8wlngQaAFSfnM2pJ4KJeoJ8xGSlvnldcnd2TJ8Zc6s8Efuwe lZFO1mG5TfcKXNSHOo54/wfLZkLWas6nLefDCD8t/pHSvfe0bgD3alPxaDngIaFdR8xG gYbA== 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=4fPpBUNfW6QikiA63YhW2xgWGtRUZKP17qHEzD14C8w=; b=xqkz5vGGSX4O35XUEIY4Oe8DePyaFTAgm+Qu47T88ALRJuM4RKj4zeymCvqREt6bRj 4H+0kIdr/ah+Ld6LpayS987E35lD++aMgLIEtISmP+s98yY7o5FTzMLKN+72p2eKcY4c T9yc+Q7ZJo6lL9BZVaZ6L6Eck4zCrZMww/oqKDFI8p65c2ZlJx4GaoJzKhN4Y+wwMFWd FUXX5KeLti6ubJnMfJ0q4guwZ5JdxhS1EOnAwM4Nw/8LLTafg2Bu3Pb1URRmGNau+ETn zj3R8zt4Gm8Q3FrBvgB85m8Oc9rd5hcmbNQ9VkygTMdsZwmP0xfmjZ9GqdZ2L8S+tmRQ xgfw== 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 h23si10228148ejd.485.2020.06.26.04.54.00; Fri, 26 Jun 2020 04:54:25 -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 S1727899AbgFZKcs (ORCPT + 99 others); Fri, 26 Jun 2020 06:32:48 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6829 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727925AbgFZKcs (ORCPT ); Fri, 26 Jun 2020 06:32:48 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7DF68A5A2842CC6A5899 for ; Fri, 26 Jun 2020 18:32:43 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Fri, 26 Jun 2020 18:32:40 +0800 From: Longfang Liu To: CC: Subject: [PATCH 5/5] crypto: hisilicon/sec2 - fix some coding styles Date: Fri, 26 Jun 2020 18:32:09 +0800 Message-ID: <1593167529-22463-6-git-send-email-liulongfang@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1593167529-22463-1-git-send-email-liulongfang@huawei.com> References: <1593167529-22463-1-git-send-email-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Modify some log output interfaces and update author information Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c b/drivers/crypto/hisilicon/sec2/sec_main.c index 5bef3d8..90cd6b5 100644 --- a/drivers/crypto/hisilicon/sec2/sec_main.c +++ b/drivers/crypto/hisilicon/sec2/sec_main.c @@ -282,7 +282,7 @@ static int sec_engine_init(struct hisi_qm *qm) reg, reg & 0x1, SEC_DELAY_10_US, SEC_POLL_TIMEOUT_US); if (ret) { - dev_err(&qm->pdev->dev, "fail to init sec mem\n"); + pci_err(qm->pdev, "fail to init sec mem\n"); return ret; } @@ -371,7 +371,7 @@ static void sec_hw_error_enable(struct hisi_qm *qm) if (qm->ver == QM_HW_V1) { writel(SEC_CORE_INT_DISABLE, qm->io_base + SEC_CORE_INT_MASK); - dev_info(&qm->pdev->dev, "V1 not support hw error handle\n"); + pci_info(qm->pdev, "V1 not support hw error handle\n"); return; } @@ -599,7 +599,7 @@ static int sec_core_debug_init(struct hisi_qm *qm) regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); if (!regset) - return -ENOENT; + return -ENOMEM; regset->regs = sec_dfx_regs; regset->nregs = ARRAY_SIZE(sec_dfx_regs); @@ -686,8 +686,6 @@ static void sec_log_hw_error(struct hisi_qm *qm, u32 err_sts) SEC_CORE_SRAM_ECC_ERR_INFO); dev_err(dev, "multi ecc sram num=0x%x\n", SEC_ECC_NUM(err_val)); - dev_err(dev, "multi ecc sram addr=0x%x\n", - SEC_ECC_ADDR(err_val)); } } errs++; @@ -996,5 +994,6 @@ module_exit(sec_exit); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Zaibo Xu "); MODULE_AUTHOR("Longfang Liu "); +MODULE_AUTHOR("Kai Ye "); MODULE_AUTHOR("Wei Zhang "); MODULE_DESCRIPTION("Driver for HiSilicon SEC accelerator"); -- 2.8.1