Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1441608ybl; Fri, 10 Jan 2020 18:50:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyhQ94VK+ZUmKzksPl3m5Pa0BwCJVp7UrQqgo7vikklGhirJKFf8Eg8oDmOGweHUuGf3dAH X-Received: by 2002:a9d:6b91:: with SMTP id b17mr5395742otq.321.1578711007511; Fri, 10 Jan 2020 18:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578711007; cv=none; d=google.com; s=arc-20160816; b=o7WCObqxrSQQ4/nPahEbAZUKOLeBRq4jnTsuPM+VCKqr5bWIswelkz3opnGHHRAcin tiNLmKqj1Jrr+KylI4bQ2ls8sTMvsdOiUsHYn8obxVPJo0G0UPX2FnBr1WTgMHvjB5xP ZqcI6EwBLFMxKrC0KotOo3RJgs9JskeqrB9twI+gHjh7N/1raC6Y1sQimv3LPaSkSHhh grY4bgDTfWJDBt3z56zdMx2da4thuah/ZeCdd58R93wzosm1jlpCg3k7wDNuwY7zs17F i4RZ3MMFgVu6RXDx23Di2yEGRss/FNGh0m5iXLej0yoToBaPnUVwzDy9csE5d+lowUSA KrPQ== 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=gt6F4uTsWktpFFyX7CiQDNWqBR7Eg8dmS5mipvr7KTw=; b=h/tTJp/+6844ai/uks2gSlQW3Pv/k1L3V9rbsCh9nikcNSvcttONE8AxnmHQ8ZkjQ+ bhh25kpK0awZXoVYm8dAPvL8e0/doYNuOjHivKhvrtIVqs+4cGxLb29z0vvUBEtj/FBw C5H9K5IRf5RrGqthwGTI3KgBA775vM2RMjGjzKTVar6dGnHAUYoZ3turZp86LL97wI/x XA+jC886OFCem1gN2VS39Mi8JdisXsrvC/AfoSx9WY3CftFMalU6PeV4FKpbpKZ//ZgM brcVGnW8dRzw7i/AXUwYFRGFQFtGjfYRbXkSOxgvzGjAl3Ju6poSavAJOxbsaAj+o1gO PnGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BuzS4eUv; 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 w11si2347148oic.62.2020.01.10.18.49.56; Fri, 10 Jan 2020 18:50:07 -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=BuzS4eUv; 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 S1728259AbgAKCtl (ORCPT + 99 others); Fri, 10 Jan 2020 21:49:41 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38975 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728128AbgAKCtl (ORCPT ); Fri, 10 Jan 2020 21:49:41 -0500 Received: by mail-pf1-f196.google.com with SMTP id q10so2038355pfs.6 for ; Fri, 10 Jan 2020 18:49:40 -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=gt6F4uTsWktpFFyX7CiQDNWqBR7Eg8dmS5mipvr7KTw=; b=BuzS4eUvOv/lhca+jR2XNxv29Xk0K8XQWpKgw3B6udBY132JvhuXBRE/kladDkwxYR aaZea4znzHpeHW+nADfJFyC1SOn1tIQnLMyZBIHs5aUh8O8izQOU2mAWoqRBZFEcsjug Z7/eidmHjaG6WHi8MPp4HL/48LWKjFxqDxyeymaSuDq7hPJXrbnJpQfBgcg8SuFbq+U/ OPzLMPV4lI7BqHR7bSJrHhFlIj+vAhl5uFKCMAuyTUKDACOpp4jCuALokLQV0XNv4is2 s5s1rFOcw7R4n8xsmQRgX2VhHy1ssc17xQdH9ABbFZ8+Pb9hL0pW8um2ym06jsoqu41+ HEYQ== 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=gt6F4uTsWktpFFyX7CiQDNWqBR7Eg8dmS5mipvr7KTw=; b=S4c38eoAh4AEyzHVMzudZIIULf+yW2X6QGhrIQTwaGzuqDklq2ta+hhXElcVIEOvNE Q22Rptal1+ud1fZ2HrLXbib2iVdxN3UtjgTq15qQ3WGuhNDw4wbfpslMNZgiBelI9svM nKYpe1QMkUCrTQk/+XONFry+xCC8l7sXZ0VrNzz2JP9XYmYcFMxrfETquJBqEe7bFfwi 55FzIrtc5ndLv3svvCr/i5kgDZ751ig5sMzw0KJJLUxUCx/3v+uOCqnCQWpTtjF/EV0O XgQh3ituXKVKad5fg5FFTA5/Vmulz3nGKkFDIPB/qUDtTGvHjvw+cb9gwMyTBqEFH0Ec 984g== X-Gm-Message-State: APjAAAW6UyTqERq+xy5tWgf+B6wzXfAq+LPc2OOE6bbl2RD2KfrJyv13 soAozscsDB+exdqgQkEKMGARjQ== X-Received: by 2002:aa7:96c7:: with SMTP id h7mr7548359pfq.211.1578710980442; Fri, 10 Jan 2020 18:49:40 -0800 (PST) Received: from localhost.localdomain ([45.135.186.78]) by smtp.gmail.com with ESMTPSA id r7sm4778472pfg.34.2020.01.10.18.49.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jan 2020 18:49:40 -0800 (PST) From: Zhangfei Gao To: Greg Kroah-Hartman , Arnd Bergmann , Herbert Xu , jonathan.cameron@huawei.com, dave.jiang@intel.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 v11 3/4] crypto: hisilicon - Remove module_param uacce_mode Date: Sat, 11 Jan 2020 10:48:38 +0800 Message-Id: <1578710919-12141-4-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578710919-12141-1-git-send-email-zhangfei.gao@linaro.org> References: <1578710919-12141-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. Reviewed-by: Jonathan Cameron 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 31ae6a7..853b97e 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -298,9 +298,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 u32 vfs_num; module_param(vfs_num, uint, 0444); MODULE_PARM_DESC(vfs_num, "Number of VFs to enable(1-63)"); @@ -796,6 +793,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; @@ -803,20 +801,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"); @@ -1015,12 +999,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; @@ -1035,8 +1017,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