From patchwork Mon Apr 27 05:41:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hadar Gat X-Patchwork-Id: 197825 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 681ABC55199 for ; Mon, 27 Apr 2020 05:42:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 54671206B6 for ; Mon, 27 Apr 2020 05:42:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726429AbgD0FmE (ORCPT ); Mon, 27 Apr 2020 01:42:04 -0400 Received: from foss.arm.com ([217.140.110.172]:56616 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726172AbgD0FmD (ORCPT ); Mon, 27 Apr 2020 01:42:03 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3A7A81063; Sun, 26 Apr 2020 22:42:03 -0700 (PDT) Received: from ssg-dev-vb.arm.com (E111385.Arm.com [10.50.65.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0DEB93F73D; Sun, 26 Apr 2020 22:41:59 -0700 (PDT) From: Hadar Gat To: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Hadar Gat , Krzysztof Kozlowski , Stefan Wahren , Zaibo Xu , Tomer Maimon , Randy Dunlap Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Gilad Ben-Yossef , Ofir Drang Subject: [PATCH 1/3] hwrng: cctrng - Add dependency on OF Date: Mon, 27 Apr 2020 08:41:37 +0300 Message-Id: <1587966099-28139-2-git-send-email-hadar.gat@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587966099-28139-1-git-send-email-hadar.gat@arm.com> References: <1587966099-28139-1-git-send-email-hadar.gat@arm.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The cctrng is unusable on non-DT systems so we should depend on it. Signed-off-by: Hadar Gat --- drivers/char/hw_random/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 0c99735..df2d001 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -476,7 +476,7 @@ config HW_RANDOM_KEYSTONE config HW_RANDOM_CCTRNG tristate "Arm CryptoCell True Random Number Generator support" - depends on HAS_IOMEM + depends on HAS_IOMEM & OF default HW_RANDOM help This driver provides support for the True Random Number From patchwork Mon Apr 27 05:41:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hadar Gat X-Patchwork-Id: 197824 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C285C5519A for ; Mon, 27 Apr 2020 05:42:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2813D206B6 for ; Mon, 27 Apr 2020 05:42:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgD0FmL (ORCPT ); Mon, 27 Apr 2020 01:42:11 -0400 Received: from foss.arm.com ([217.140.110.172]:56664 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726172AbgD0FmK (ORCPT ); Mon, 27 Apr 2020 01:42:10 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0600431B; Sun, 26 Apr 2020 22:42:10 -0700 (PDT) Received: from ssg-dev-vb.arm.com (E111385.Arm.com [10.50.65.54]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E575E3F73D; Sun, 26 Apr 2020 22:42:06 -0700 (PDT) From: Hadar Gat To: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Hadar Gat , Krzysztof Kozlowski , Stefan Wahren , Zaibo Xu , Tomer Maimon , Randy Dunlap Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Gilad Ben-Yossef , Ofir Drang Subject: [PATCH 3/3] hwrng: cctrng - update help description Date: Mon, 27 Apr 2020 08:41:39 +0300 Message-Id: <1587966099-28139-4-git-send-email-hadar.gat@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587966099-28139-1-git-send-email-hadar.gat@arm.com> References: <1587966099-28139-1-git-send-email-hadar.gat@arm.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Improved the HW_RANDOM_CCTRNG help description. Signed-off-by: Hadar Gat --- drivers/char/hw_random/Kconfig | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 0938d3d..c73d532 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -479,13 +479,14 @@ config HW_RANDOM_CCTRNG depends on HW_RANDOM & HAS_IOMEM & OF default n help - This driver provides support for the True Random Number - Generator available in Arm TrustZone CryptoCell. - - To compile this driver as a module, choose M here: the module + Say 'Y' to enable the True Random Number Generator driver for the + Arm TrustZone CryptoCell family of processors. + Currently the CryptoCell 713 and 703 are supported. + The driver is supported only in SoC where Trusted Execution + Environment is not used. + Choose 'M' to compile this driver as a module. The module will be called cctrng. - - If unsure, say Y. + If unsure, say 'N'. endif # HW_RANDOM