Commit 38c3b74e authored by Longfang Liu's avatar Longfang Liu Committed by Herbert Xu

crypto: hisilicon/sec2 - fix some coding styles

Modify some log output interfaces and
update author information
Signed-off-by: default avatarLongfang Liu <liulongfang@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6b534f7a
...@@ -282,7 +282,7 @@ static int sec_engine_init(struct hisi_qm *qm) ...@@ -282,7 +282,7 @@ static int sec_engine_init(struct hisi_qm *qm)
reg, reg & 0x1, SEC_DELAY_10_US, reg, reg & 0x1, SEC_DELAY_10_US,
SEC_POLL_TIMEOUT_US); SEC_POLL_TIMEOUT_US);
if (ret) { 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; return ret;
} }
...@@ -371,7 +371,7 @@ static void sec_hw_error_enable(struct hisi_qm *qm) ...@@ -371,7 +371,7 @@ static void sec_hw_error_enable(struct hisi_qm *qm)
if (qm->ver == QM_HW_V1) { if (qm->ver == QM_HW_V1) {
writel(SEC_CORE_INT_DISABLE, qm->io_base + SEC_CORE_INT_MASK); 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; return;
} }
...@@ -599,7 +599,7 @@ static int sec_core_debug_init(struct hisi_qm *qm) ...@@ -599,7 +599,7 @@ static int sec_core_debug_init(struct hisi_qm *qm)
regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL);
if (!regset) if (!regset)
return -ENOENT; return -ENOMEM;
regset->regs = sec_dfx_regs; regset->regs = sec_dfx_regs;
regset->nregs = ARRAY_SIZE(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) ...@@ -686,8 +686,6 @@ static void sec_log_hw_error(struct hisi_qm *qm, u32 err_sts)
SEC_CORE_SRAM_ECC_ERR_INFO); SEC_CORE_SRAM_ECC_ERR_INFO);
dev_err(dev, "multi ecc sram num=0x%x\n", dev_err(dev, "multi ecc sram num=0x%x\n",
SEC_ECC_NUM(err_val)); SEC_ECC_NUM(err_val));
dev_err(dev, "multi ecc sram addr=0x%x\n",
SEC_ECC_ADDR(err_val));
} }
} }
errs++; errs++;
...@@ -996,5 +994,6 @@ module_exit(sec_exit); ...@@ -996,5 +994,6 @@ module_exit(sec_exit);
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Zaibo Xu <xuzaibo@huawei.com>"); MODULE_AUTHOR("Zaibo Xu <xuzaibo@huawei.com>");
MODULE_AUTHOR("Longfang Liu <liulongfang@huawei.com>"); MODULE_AUTHOR("Longfang Liu <liulongfang@huawei.com>");
MODULE_AUTHOR("Kai Ye <yekai13@huawei.com>");
MODULE_AUTHOR("Wei Zhang <zhangwei375@huawei.com>"); MODULE_AUTHOR("Wei Zhang <zhangwei375@huawei.com>");
MODULE_DESCRIPTION("Driver for HiSilicon SEC accelerator"); MODULE_DESCRIPTION("Driver for HiSilicon SEC accelerator");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment