Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5250823ybe; Tue, 10 Sep 2019 00:22:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfSQ2OBXt+WJF80fMKkBGJ1EcUzGpVJQGWTid2um4iw5IkvUzaAGq9rQtBDOFqmcesXxmT X-Received: by 2002:a17:906:128a:: with SMTP id k10mr6079068ejb.9.1568100169586; Tue, 10 Sep 2019 00:22:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568100169; cv=none; d=google.com; s=arc-20160816; b=QS/ZbrEW1SndJJiqYjWrW3dpZlp6YI+YQBNRj5l2Bq+k9VB6LVifTTWXVPMtYDMzoT b4lPYe4dhAy9t9otoQJ5ov82tUfYP1Wl5oRtdMzEkiFrBrj7hKi0a+EnRmOeU02+MKrD IpOIIF07fx85zYFOS62UC1u06PBQhlQOOhD7ut73DLAEeAIBE1wrP12ngXLXKZmE4PZH cNQm6+S8bVc59OcnP2XWMxJj2/jtfM8btVfSQd/n8epPhRGcx2oeVTj13ETqqAtmi/WZ t+RgwQTC/NlWtMo67lp5ZeY4s4ZPv8FQwuR+oimTgSUAm0LpAdnm4aFpkwwQ5aBMiaqx pSwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=AEQAOOZCMfzCLs5R4hHVhTmqLIk5r2dfkZ5RSR0ajqg=; b=xsZfs0PmsyI+hduxix+9xzjHERB+xqJ5cEkZcZVSZuUHr2dBM2JPU54JEepMLUF19S L3BPh5w6H9xc1yZkmqDO3RqoFjuU4pIJgyFIZJo931L51KASkavYR7Eb/2KKdDLV+km4 x9bGHX0g6L4O2QQzP2PNAVC7p5B65cuHrJhNNHTIKd6OUcVjewA4LnmrThFpyikl+dJI w1TcwuMtXHSasEdIJyNQJa9aU1zKhd6JYtyqDQIxQ9kIXFeMVnAk9algIAhR7+q/5zw6 SbEJv80CpNBO0k/Rl9LfIs2UYYvUWEOw2589QINLclE7I5ESdrx6ovBLvz/VzRezYaJo ZLiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a19si8451701ejj.73.2019.09.10.00.22.25; Tue, 10 Sep 2019 00:22:49 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404749AbfIIMk1 (ORCPT + 99 others); Mon, 9 Sep 2019 08:40:27 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:42626 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727810AbfIIMk1 (ORCPT ); Mon, 9 Sep 2019 08:40:27 -0400 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id x89Ccfih029012; Mon, 9 Sep 2019 15:38:41 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 23293628F1; Mon, 9 Sep 2019 15:38:41 +0300 (IDT) From: Tomer Maimon To: mpm@selenic.com, herbert@gondor.apana.org.au, arnd@arndb.de, gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com, avifishman70@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, sumit.garg@linaro.org, jens.wiklander@linaro.org, vkoul@kernel.org, tglx@linutronix.de, joel@jms.id.au Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, openbmc@lists.ozlabs.org, Tomer Maimon Subject: [PATCH v2 0/2] hwrng: npcm: add NPCM RNG driver support Date: Mon, 9 Sep 2019 15:38:38 +0300 Message-Id: <20190909123840.154745-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds Randon Number Generator (RNG) support for the Nuvoton NPCM Baseboard Management Controller (BMC). The RNG driver we use power consumption when the RNG is not required. The NPCM RNG driver tested on NPCM750 evaluation board. Addressed comments from:. - Daniel Thompson, Milton Miller II : https://patchwork.ozlabs.org/patch/1154598/ Changes since version 1: - Define timout in real-world units. - Using readl_poll_timeout in rng_read function. - Honor wait parameter in rng_read function. - Using local variable instead of #ifndef. - Remove probe print. Tomer Maimon (2): dt-binding: hwrng: add NPCM RNG documentation hwrng: npcm: add NPCM RNG driver .../bindings/rng/nuvoton,npcm-rng.txt | 17 ++ drivers/char/hw_random/Kconfig | 13 ++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/npcm-rng.c | 203 ++++++++++++++++++ 4 files changed, 234 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt create mode 100644 drivers/char/hw_random/npcm-rng.c -- 2.18.0