Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp409768ybc; Fri, 22 Nov 2019 07:11:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzCOtXkDar+WNoXibX6DPLzU2a9SlmHGzm1Nmr7YGtRr9VTsRnNUMoTxPchQnWVD+EbOp0H X-Received: by 2002:a05:6402:2029:: with SMTP id ay9mr1687368edb.47.1574435513203; Fri, 22 Nov 2019 07:11:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574435513; cv=none; d=google.com; s=arc-20160816; b=W2UBiVhJnebOuFzZQWbn5Ln59NPJx5WWDPI9oYCRt23b/608t/mzQ1HpMqb32H1d8G no7qeWytKeNJQM4uw4U8Bg5rR6mKyAAGjl5X0lZq7ftFQCeRc4P5x0lwNmSfkc3DpT1W l9VrQgdc5P/m+5SqrAOiMUruehUDQJthl38Ud8hy86rdfPbPPnGkU0h/JkP/uC4BgRBw +1wSVrBmKLMOfDMxYNxGaai261TGdgBASfCxvoYxU4482aVXETh/BwPWenNUl0vyq8rG JoNjsMZUgtFVHdvLbjN/XivEFBN6zKP0fN8Q9Jb/vSMExQGUhpj67FiKo+wIbY7Rm4x0 WOQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=tJZyhm43uf0Z/sgLghvh3C922Koet0UHje3bklWsAKA=; b=vdR9wRjHv73a8Zt1Rij1vxjYBNOdM0fwGITvyX147VYSo4vnzSl1Iop20vhPNPCyAP wkAX1cpRfWzQDqgmJHJPEtgMZrqmuPEmtiHXiwwZKNNez9xTMm/XgvYjUqcNKZujwBLj MivcTLStOE4ysXfZiwIY1RqSIkYkilthUCuXBIPDoM5FzKI7Peq7NUzOmJAP6Vr84G5D muimlr5R45ep81ee7l8lysm7BWPwUan9bZQ00P87hnFteip6FIRrgmbJwTOl/JH9sT1q HBHhQCb0kWLLY1tBpBdGBxYVqCMmsQljV57+OJLbu0fNB7P9rytv9QTGulw9nTGGh32F FYRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UKWsDluE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24si4831974edm.333.2019.11.22.07.11.27; Fri, 22 Nov 2019 07:11:53 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=UKWsDluE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727254AbfKVPJz (ORCPT + 99 others); Fri, 22 Nov 2019 10:09:55 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39338 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbfKVPJy (ORCPT ); Fri, 22 Nov 2019 10:09:54 -0500 Received: by mail-pf1-f195.google.com with SMTP id x28so3616592pfo.6 for ; Fri, 22 Nov 2019 07:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tJZyhm43uf0Z/sgLghvh3C922Koet0UHje3bklWsAKA=; b=UKWsDluEmzAq6qXa6AyufiTRGS8uyeF/E1ybHYD2BhpdDKFu8ohyyhib+rGRL0RQk7 6ETIuUpJ2xaqwB2fiuiVGCZy3dKYtLw4ilm7bKBvFo0k1evx8V5200VPDzwi6SQDvfAS RQE8wpNgi2am9UqvIZn0J2IUFN72HpRBwXKXVOvpOSXrVDP/lSerMxwT48/v2+So/0Qm i+o0x6UUNxTuzeDIxShfoRa5k/n57nBcPh7UUmA0jdjnrZCXQ8ov6R8OWZaNtPMBlbo6 dJS23BrpU27x2DVkqaogYcAS1ebYO5COe1i+WXQbMAfhOzpANrVa5CsYlBDq2AUFlcxI mS1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tJZyhm43uf0Z/sgLghvh3C922Koet0UHje3bklWsAKA=; b=FHroi+6oVTL0gWjMJ0+4lNt/aFzyIr9ma9ubg5zS3UygAYQfUmXomqT9l1WSL7gjaV JgaujCTnlC4r5jHIobYBJvwVeG7cd8FMX+2D3RC6IpAkuwlAXjEVG1/BILDik67aWGgU pKizWnD1p1Ucl7kr/y0857ooJAQDtgTX7ffao2iSAchCytilnnyAYGDrHaOZF13yCJ70 FBFycsJIioMPzRLn2mshtsG9EhQPvWayXIZALqEbvym+w2ojb+7QEDdg6wMUJ7WBt8Ij tKsGwi8b+u5Th+9hH3zrhGivwEstH1bouy5TFG7qIv73QObgl5sbGIb6JwlH8D9qU6LB u1Dg== X-Gm-Message-State: APjAAAXofpkZcDUDJqbL1TXUoJQGN/2utZ+VTOWJS5pxviGBnOCulYzm zkxNyXH+G0UiM5NNm9MUr7TVkg== X-Received: by 2002:a65:66c5:: with SMTP id c5mr16862228pgw.12.1574435393785; Fri, 22 Nov 2019 07:09:53 -0800 (PST) Received: from localhost.localdomain ([240e:362:496:8600:f5af:2744:25c3:d01a]) by smtp.gmail.com with ESMTPSA id a19sm8066021pfn.144.2019.11.22.07.09.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Nov 2019 07:09:53 -0800 (PST) From: Zhangfei Gao To: Greg Kroah-Hartman , Arnd Bergmann , Herbert Xu , jonathan.cameron@huawei.com, grant.likely@arm.com, jean-philippe , Jerome Glisse , ilias.apalodimas@linaro.org, francois.ozog@linaro.org, kenneth-lee-2012@foxmail.com, Wangzhou , "haojian . zhuang" , guodong.xu@linaro.org Cc: linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, iommu@lists.linux-foundation.org, Zhangfei Gao Subject: [PATCH v9 3/4] crypto: hisilicon - Remove module_param uacce_mode Date: Fri, 22 Nov 2019 23:07:40 +0800 Message-Id: <1574435261-6031-4-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574435261-6031-1-git-send-email-zhangfei.gao@linaro.org> References: <1574435261-6031-1-git-send-email-zhangfei.gao@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Remove the module_param uacce_mode, which is not used currently. Signed-off-by: Zhangfei Gao Signed-off-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index 1b2ee96..3de9412 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -264,9 +264,6 @@ static u32 pf_q_num = HZIP_PF_DEF_Q_NUM; module_param_cb(pf_q_num, &pf_q_num_ops, &pf_q_num, 0444); MODULE_PARM_DESC(pf_q_num, "Number of queues in PF(v1 1-4096, v2 1-1024)"); -static int uacce_mode; -module_param(uacce_mode, int, 0); - static const struct pci_device_id hisi_zip_dev_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, PCI_DEVICE_ID_ZIP_PF) }, { PCI_DEVICE(PCI_VENDOR_ID_HUAWEI, PCI_DEVICE_ID_ZIP_VF) }, @@ -669,6 +666,7 @@ static int hisi_zip_probe(struct pci_dev *pdev, const struct pci_device_id *id) pci_set_drvdata(pdev, hisi_zip); qm = &hisi_zip->qm; + qm->use_dma_api = true; qm->pdev = pdev; qm->ver = rev_id; @@ -676,20 +674,6 @@ static int hisi_zip_probe(struct pci_dev *pdev, const struct pci_device_id *id) qm->dev_name = hisi_zip_name; qm->fun_type = (pdev->device == PCI_DEVICE_ID_ZIP_PF) ? QM_HW_PF : QM_HW_VF; - switch (uacce_mode) { - case 0: - qm->use_dma_api = true; - break; - case 1: - qm->use_dma_api = false; - break; - case 2: - qm->use_dma_api = true; - break; - default: - return -EINVAL; - } - ret = hisi_qm_init(qm); if (ret) { dev_err(&pdev->dev, "Failed to init qm!\n"); @@ -976,12 +960,10 @@ static int __init hisi_zip_init(void) goto err_pci; } - if (uacce_mode == 0 || uacce_mode == 2) { - ret = hisi_zip_register_to_crypto(); - if (ret < 0) { - pr_err("Failed to register driver to crypto.\n"); - goto err_crypto; - } + ret = hisi_zip_register_to_crypto(); + if (ret < 0) { + pr_err("Failed to register driver to crypto.\n"); + goto err_crypto; } return 0; @@ -996,8 +978,7 @@ static int __init hisi_zip_init(void) static void __exit hisi_zip_exit(void) { - if (uacce_mode == 0 || uacce_mode == 2) - hisi_zip_unregister_from_crypto(); + hisi_zip_unregister_from_crypto(); pci_unregister_driver(&hisi_zip_pci_driver); hisi_zip_unregister_debugfs(); } -- 2.7.4