From patchwork Fri Sep 11 20:08:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7163331 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6120A9F326 for ; Fri, 11 Sep 2015 20:12:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 84C2E20815 for ; Fri, 11 Sep 2015 20:12:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A296F20810 for ; Fri, 11 Sep 2015 20:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754116AbbIKUMQ (ORCPT ); Fri, 11 Sep 2015 16:12:16 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:34257 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753944AbbIKUKh (ORCPT ); Fri, 11 Sep 2015 16:10:37 -0400 Received: by wicfx3 with SMTP id fx3so76381615wic.1 for ; Fri, 11 Sep 2015 13:10:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v51HlGlCbVBiczRWApp2uTIOzNTPd12nwNYas6En+yk=; b=exmke4iKhjjCU59gKMLKtWlz+if18DDd7EhK74ChFyl6AN7bAyJakX08WRtq+oDtKt 8lox//a/CQgOUYQDBPsbAQSw6uUpM/jCTwBSFtAVhu+9YpOHyq4jfVRrdnEigL7k4bQ3 ccJjJ1u7pd4HXasvEPDthOq4DCzeZXS8K9tmnK27Tcs/n4tascHP0kexBHisxXm9XSTF rpOknWHjE2QBaPraajlUukDM50/Hf93XSUl/SrrhplBZaOnzgri2l7RVMnekjv9z32xc 9Ba2jcu3DMgwi9+VaM4flPxGowiJV41tK0SE8x5KT9MOntqrJGfHnWpKOeCLs6hJlGp6 madw== X-Gm-Message-State: ALoCoQlfijEaGcVfWHePlfhKRvUYAfYx5EjmEMXSvp7oqw2t17DIs9EPMVE4TEHYkrs8FEgDP9KX X-Received: by 10.195.13.5 with SMTP id eu5mr939016wjd.135.1442002236001; Fri, 11 Sep 2015 13:10:36 -0700 (PDT) Received: from localhost.localdomain (host81-129-169-75.range81-129.btcentralplus.com. [81.129.169.75]) by smtp.gmail.com with ESMTPSA id fn8sm774193wib.2.2015.09.11.13.10.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Sep 2015 13:10:35 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, mpm@selenic.com, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, Lee Jones Subject: [PATCH 1/6] Documentation: hw_random: Fix device node name /dev/hw_random => /dev/hwrng Date: Fri, 11 Sep 2015 21:08:25 +0100 Message-Id: <1442002110-28733-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442002110-28733-1-git-send-email-lee.jones@linaro.org> References: <1442002110-28733-1-git-send-email-lee.jones@linaro.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In April 2099, commit d405640 ("Driver Core: misc: add node name support for misc devices.") inadvertently changed the device node name from /dev/hw_random to /dev/hwrng. Since 6 years has passed since the change it seems unpractical to change it back now, as this node name is probably considered ABI by now. So instead, we'll just change the documentation to match the current situation. NB: It looks like rng-tools have already been updated. Signed-off-by: Lee Jones --- Documentation/hw_random.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/hw_random.txt b/Documentation/hw_random.txt index 026e237..fce1634 100644 --- a/Documentation/hw_random.txt +++ b/Documentation/hw_random.txt @@ -3,7 +3,7 @@ Introduction: The hw_random framework is software that makes use of a special hardware feature on your CPU or motherboard, a Random Number Generator (RNG). The software has two parts: - a core providing the /dev/hw_random character device and its + a core providing the /dev/hwrng character device and its sysfs support, plus a hardware-specific driver that plugs into that core. @@ -14,7 +14,7 @@ Introduction: http://sourceforge.net/projects/gkernel/ - Those tools use /dev/hw_random to fill the kernel entropy pool, + Those tools use /dev/hwrng to fill the kernel entropy pool, which is used internally and exported by the /dev/urandom and /dev/random special files. @@ -32,13 +32,13 @@ Theory of operation: The rng-tools package uses such tests in "rngd", and lets you run them by hand with a "rngtest" utility. - /dev/hw_random is char device major 10, minor 183. + /dev/hwrng is char device major 10, minor 183. CLASS DEVICE. There is a /sys/class/misc/hw_random node with two unique attributes, "rng_available" and "rng_current". The "rng_available" attribute lists the hardware-specific drivers available, while "rng_current" lists the one which is currently - connected to /dev/hw_random. If your system has more than one + connected to /dev/hwrng. If your system has more than one RNG available, you may change the one used by writing a name from the list in "rng_available" into "rng_current".