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: 53497 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 1B82B22B26 for ; Fri, 11 Sep 2015 20:10:56 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf22606459wic.1 for ; Fri, 11 Sep 2015 13:10:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=SkHrEReuz01YfD84qnoKOEgMbQIYLsyOEnas4Mj2nsc=; b=BtipS8B2gSBxWf18QIezg19Vqxbo2/2pYsVszqqiM9WB0wF8rtm7LUE6jLuTsbFFe/ iS7AuDh251mLmyGSU9wPIRO6EU+OU2Y3fJon6Zg/TKnTPKKv1L2hFwSA00GRytKhuEHK Fcrgqk8JRt7Met31tbd1NNsS/foP1d6w1pnIMBT4fFartZoGt5HOUsrnYaZ+q0FQEJny PddDM2JDZQR3IYISFjFkiNUd1ZJqLOWw46rcXJT9xGYLOayswl2Egq5PWc4H7kc3BR59 S33btP8/KkeK1EPE+JoVmXXP4xasoNWEfsnPcPDZf1yLFIsJEfSnvAAx6TJpybH3rUT9 Cn5Q== X-Gm-Message-State: ALoCoQm4+ClVU+c4mu/0hQq5fiuiSi+tLofLVwtwA3cw+XRW1mwC0hVH5bLRZWSbkFWhRBxgK6RI X-Received: by 10.112.199.5 with SMTP id jg5mr174467lbc.14.1442002255377; Fri, 11 Sep 2015 13:10:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.162 with SMTP id d2ls67804lag.19.gmail; Fri, 11 Sep 2015 13:10:55 -0700 (PDT) X-Received: by 10.152.30.37 with SMTP id p5mr587170lah.102.1442002255197; Fri, 11 Sep 2015 13:10:55 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id s7si1239316las.48.2015.09.11.13.10.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Sep 2015 13:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lamp12 with SMTP id p12so53854810lam.0 for ; Fri, 11 Sep 2015 13:10:55 -0700 (PDT) X-Received: by 10.152.21.196 with SMTP id x4mr534798lae.117.1442002255095; Fri, 11 Sep 2015 13:10:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1813487lbq; Fri, 11 Sep 2015 13:10:54 -0700 (PDT) X-Received: by 10.107.15.170 with SMTP id 42mr7461027iop.137.1442002253951; Fri, 11 Sep 2015 13:10:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si533292igm.25.2015.09.11.13.10.52; Fri, 11 Sep 2015 13:10:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754039AbbIKUKm (ORCPT + 29 others); Fri, 11 Sep 2015 16:10:42 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34256 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753915AbbIKUKh (ORCPT ); Fri, 11 Sep 2015 16:10:37 -0400 Received: by wicfx3 with SMTP id fx3so76381592wic.1 for ; Fri, 11 Sep 2015 13:10:36 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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".