From patchwork Thu Sep 17 13:45:51 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 53820 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id BC7F022A0D for ; Thu, 17 Sep 2015 13:48:04 +0000 (UTC) Received: by lagj9 with SMTP id j9sf7496329lag.0 for ; Thu, 17 Sep 2015 06:48:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=QOSjSxlrBeRbFNSwV4K7GbZyr0+rVgayTrsZOaA/ffg=; b=joaK8XbOqgS1WNfKrRgg24/K8uXVYf+U0Agwj0bxwQfhgWsPP5fRZywxsgogD5KcBJ rZADZF7ZC5AqsxUg2N01ldYBFYS+Z4un8OBsmYlHbAwcZMAR8wBSXZAmzMi0PZr8ddof 3k18TeRFfdF6GRtBUiejg7wttjNsec697RZCi3Vk8LIuldYNDH2hQ8O9GuywStpUFoRE X8X6xstnr7sCCHuC/EcX0bU5r04qEPfNkxbFdWpbABQe4HuIDLRKxaaMO+CiiHxrMccA mOViu0V7Miul3+EWNzuoqmbqjP13q0SGU8/JZpXbOUOMUvReM9B2+xT40N051qUSGVGj 3UAg== X-Gm-Message-State: ALoCoQlTr9bLSWgC5ZP7aMJRxj3etLo9On+kOno6mAk8oLdqyRd7i8Xzyx0TOPMJJBSp1nD5m/qh X-Received: by 10.180.210.71 with SMTP id ms7mr795421wic.4.1442497683696; Thu, 17 Sep 2015 06:48:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.230 with SMTP id e6ls95738lah.66.gmail; Thu, 17 Sep 2015 06:48:03 -0700 (PDT) X-Received: by 10.112.16.199 with SMTP id i7mr19613479lbd.105.1442497683531; Thu, 17 Sep 2015 06:48:03 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id y9si2220543lbr.34.2015.09.17.06.48.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 06:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagj9 with SMTP id j9so11654881lag.2 for ; Thu, 17 Sep 2015 06:48:03 -0700 (PDT) X-Received: by 10.112.168.66 with SMTP id zu2mr36345173lbb.29.1442497683367; Thu, 17 Sep 2015 06:48:03 -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 w3csp3081905lbq; Thu, 17 Sep 2015 06:48:02 -0700 (PDT) X-Received: by 10.66.141.141 with SMTP id ro13mr73536988pab.68.1442497680375; Thu, 17 Sep 2015 06:48:00 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id tg7si5474344pbc.190.2015.09.17.06.48.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Sep 2015 06:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcZWW-0002cc-LL; Thu, 17 Sep 2015 13:46:52 +0000 Received: from mail-wi0-f181.google.com ([209.85.212.181]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZcZW6-0002Ha-5p for linux-arm-kernel@lists.infradead.org; Thu, 17 Sep 2015 13:46:27 +0000 Received: by wicge5 with SMTP id ge5so119612704wic.0 for ; Thu, 17 Sep 2015 06:46:04 -0700 (PDT) X-Received: by 10.194.110.37 with SMTP id hx5mr63945695wjb.149.1442497564477; Thu, 17 Sep 2015 06:46:04 -0700 (PDT) Received: from x1.o2wifi.co.uk ([46.233.116.143]) by smtp.gmail.com with ESMTPSA id hk5sm3547895wjb.6.2015.09.17.06.46.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Sep 2015 06:46:03 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, peter@korsgaard.com, festevam@gmail.com, kieranbingham@gmail.com Subject: [PATCH v2 1/7] Documentation: hw_random: Fix device node name reference /dev/hw_random => /dev/hwrng Date: Thu, 17 Sep 2015 14:45:51 +0100 Message-Id: <1442497557-9271-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1442497557-9271-1-git-send-email-lee.jones@linaro.org> References: <1442497557-9271-1-git-send-email-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150917_064626_530266_CFF80EE4 X-CRM114-Status: GOOD ( 14.67 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.181 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.181 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: Lee Jones , kernel@stlinux.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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.43 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 In April 2009, 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, 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 Acked-by: Kieran Bingham --- 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".