Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp616332ybt; Mon, 6 Jul 2020 18:18:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsX7QdpRxbL/ruiLJCpH3hpL1ymYBgQjS9nZ7/as7+mnLQiXa3QKnHNVL4yTJYjSpSnMsT X-Received: by 2002:a17:906:5006:: with SMTP id s6mr44334853ejj.294.1594084693432; Mon, 06 Jul 2020 18:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594084693; cv=none; d=google.com; s=arc-20160816; b=vmfZkAFRgGVwrP6Worw4Q8KLR2+AXTN+HG+2T/yrCs9MbmorV21g5B2ABc/IqgmoaR bKZ5CExHxIxPjXqU1Q4Ls02nCpVfleSa7UCMifpR6QaMcetwAUxLmncphRy8D3Z5EnNo N07DxqCz5h6Lg6mdJDTdWQDEG8J1oq9sx5Q0IJ0RKWWdprRWU4thO/OjtVZe+Gks0vci y6zppxjgPXT3UZpeV0sTpDZJgt/k3aP0b+glCalVUR+cUml1lu5fgz7I/fRgT0bihdwL RZBzpDjQUdKOqFH/BYTo8npxE6I0Bl1E5coWhIeKpfseszolXdlWv2Tey0pNKxr2SJM5 jIGw== 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=9LZfdTPt4+v5xGCPei6h84KpYVADzgqnETzpMenTmMw=; b=LVEFGFZ8sDAM3U3Ty/q2uS+HF1/GFvNxS9faRQ08PTaUJ/3o2QH+Z1UgTRcLOnR2LG 9OoV5zW67PnLq85AdXemYLLUFCtE+9en8wusHqOkrtFWusAx18Nr8i1+J4J4UEuLb85d FdL0LeJPEiOoFEKwGHOrv+ygqpSrPkL9H48Xb+Iw4FQRoqg9hIwxN/TkdBBU1hKMzRtB DLcXnOejSwSjRix/38Gjyerxc6BSVpuA0RBHm18D+d9gxr+daZp7vgFIav2r/xqoHldJ yLmjPhEiknPscbWICCMFOwvvhAJpudpu2zmeqtIXgeGWKNIEWASjc1OEWiZumnSHHPF8 Z1yw== 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 q28si14361318edw.196.2020.07.06.18.17.50; Mon, 06 Jul 2020 18:18:13 -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 S1727076AbgGGBQZ (ORCPT + 99 others); Mon, 6 Jul 2020 21:16:25 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:36618 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725892AbgGGBQX (ORCPT ); Mon, 6 Jul 2020 21:16:23 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id BB64AE1014BFA9131842 for ; Tue, 7 Jul 2020 09:16:21 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Tue, 7 Jul 2020 09:16:17 +0800 From: Longfang Liu To: CC: Subject: [PATCH v2 5/5] crypto: hisilicon/sec2 - fix some coding styles Date: Tue, 7 Jul 2020 09:15:41 +0800 Message-ID: <1594084541-22177-6-git-send-email-liulongfang@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1594084541-22177-1-git-send-email-liulongfang@huawei.com> References: <1594084541-22177-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 301f042..2297425 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