From patchwork Tue Dec 5 12:42:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 10092847 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F31D06035E for ; Tue, 5 Dec 2017 12:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE7B7288FD for ; Tue, 5 Dec 2017 12:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E347D295BF; Tue, 5 Dec 2017 12:42:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48224288FD for ; Tue, 5 Dec 2017 12:42:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064AbdLEMmY (ORCPT ); Tue, 5 Dec 2017 07:42:24 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:60969 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753055AbdLEMmT (ORCPT ); Tue, 5 Dec 2017 07:42:19 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171205124217euoutp01561f87bf09a309c4a6f1f596422caa67~9Zn0lXKST3203732037euoutp01k; Tue, 5 Dec 2017 12:42:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171205124217euoutp01561f87bf09a309c4a6f1f596422caa67~9Zn0lXKST3203732037euoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1512477737; bh=X5d1GCVT/4D6vPD/RMP1HRrm8E1/lG2MsQ4eludxE5k=; h=From:To:Cc:Subject:Date:References:From; b=dVIwfF/uYPXwzvnL1fyjlnbZYvht/5/ZtZh48FTuuWUNbHYom1Fv9lToBA5nccX28 n3TQMDzphcQCCW7rtMJ0/5YLUU/K/6+FxB5ZkUglIGd0TZBb6hSIOZHddzJAyneoTT kQZyW5IrK8qcZ29D5X5xBkUK7s+7ViT3Law/Hz9k= Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171205124216eucas1p2b069a6726b0d8d52225c5e8f3b33db84~9Znz1_fcs1240012400eucas1p2A; Tue, 5 Dec 2017 12:42:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 52.96.12867.824962A5; Tue, 5 Dec 2017 12:42:16 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171205124216eucas1p17f46fc23ea35f7f2fcacc49d88e40a15~9ZnzLeLJf0739607396eucas1p1H; Tue, 5 Dec 2017 12:42:16 +0000 (GMT) X-AuditID: cbfec7f2-f793b6d000003243-8e-5a2694286a22 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 07.C6.20118.724962A5; Tue, 5 Dec 2017 12:42:16 +0000 (GMT) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" Received: from localhost ([106.116.147.110]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P0H00AQNNAFNX80@eusync1.samsung.com>; Tue, 05 Dec 2017 12:42:15 +0000 (GMT) From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= To: Krzysztof Kozlowski , robh+dt@kernel.org, Stephan Mueller , Herbert Xu , "David S. Miller" , Kukjin Kim , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?=C5=81ukasz=20Stelmach?= , m.szyprowski@samsung.com, b.zolnierkie@samsung.com Subject: [RFC] crypto: exynos - Icrease the priority of the driver Date: Tue, 05 Dec 2017 13:42:14 +0100 Message-id: <20171205124214.31263-1-l.stelmach@samsung.com> X-Mailer: git-send-email 2.11.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAKsWRmVeSWpSXmKPExsWy7djPc7oaU9SiDDaslbPYOGM9q8Wc8y0s Ft2vZCz6H79mtjh/fgO7xc1DKxgt7t/7yWRxedccNosZ5/cxWaw9cpfdonXvEXaLqafXsjjw eHy6coXJY8vKm0we2w6oemxa1cnm0bdlFaPH501yAWxRXDYpqTmZZalF+nYJXBl3np5mLvjC VvFg3jPmBsZzrF2MnBwSAiYSZ2Y+YISwxSQu3FvP1sXIxSEksJRRYsm8j0wQzmdGidZ5N+A6 Zv9oZIFILGOUuHD9LDtIgldAUOLH5HtACQ4OZgF5iSOXskHCzAKaElt3r2eHqP/CKPF7xQ1m kASbgKNE/9ITrCAJEYG9TBJvzu5lgegolTg77zZYkbCAk8T8NWfA4iwCqhLPfj5mg1hmLfFo 6nmou+UldrVdBLuOX0BLYk3TdbDrJAQes0ns/bofqshF4u6T+0wQtrDEq+Nb2CFsGYnLk7uh GvoZJQ7P/w6VmMIosXihA4RtLfFn1UQ2iOv4JCZtm84M8qaEAK9ER5sQRImHxP3HN6HCjhJN q8JBwkICsRLz791in8AoNwspjGYhwmgWUhgtYGRexSiSWlqcm55abKxXnJhbXJqXrpecn7uJ EZhuTv87/mkH49cTVocYBTgYlXh4G7xVo4R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hTFNZH7PMll/fmvM9ojPzXcEtj82tJx5FGm4sU2Ipzkg0 1GIuKk4EAKZl5aZ8AgAA X-CMS-MailID: 20171205124216eucas1p17f46fc23ea35f7f2fcacc49d88e40a15 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171205124216eucas1p17f46fc23ea35f7f2fcacc49d88e40a15 X-RootMTR: 20171205124216eucas1p17f46fc23ea35f7f2fcacc49d88e40a15 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP exynos-rng is one of many implementations of stdrng. With priority as low as 100 it isn't selected, if software implementations (DRBG) are available. Signed-off-by: Ɓukasz Stelmach --- If not 1000, what is the best value, what is the policy? drivers/crypto/exynos-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/exynos-rng.c b/drivers/crypto/exynos-rng.c index 0bf07a655813..3c514eaae9dc 100644 --- a/drivers/crypto/exynos-rng.c +++ b/drivers/crypto/exynos-rng.c @@ -259,7 +259,7 @@ static struct rng_alg exynos_rng_alg = { .base = { .cra_name = "stdrng", .cra_driver_name = "exynos_rng", - .cra_priority = 100, + .cra_priority = 1000, .cra_ctxsize = sizeof(struct exynos_rng_ctx), .cra_module = THIS_MODULE, .cra_init = exynos_rng_kcapi_init,