Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2496043ybe; Sat, 14 Sep 2019 16:37:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoza5PdlXjhYrkWhDHT0qAW8KI2lgG1qdBrpXB8Y57O8TIAmtSkDQWVFC3shb+jDnOVlsT X-Received: by 2002:a17:906:ce46:: with SMTP id se6mr9065225ejb.198.1568504238529; Sat, 14 Sep 2019 16:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568504238; cv=none; d=google.com; s=arc-20160816; b=u1O2uocS74N1sZcVXqZDftk2DCpErI/f3IhB+fLnyFygrGZ5YCe6iYFM7DcAUTQp6p p6H9h76YibmJuSNHrKX64XmOMlPMHt3+hA9i9405956iTLy1i1YAgPblARshtI5npW0z 1nidWQFZQgKG+KCkpkGa+vzUGWkyieNhpqNYqeu/zy+Bta+WBRlNJTrPN05vCarU7eV6 F0V5mP8bNdUIcdMiQhMpi9u7NJjqlZfAKlOqCLpCMqHiJkyt0/NcncsV3+xGvjU9CiyX lGydhaxmr5vzT+KDV09OOY7IeKIs28p0fFWxe8TtScaqalIklGkl05JMz6pnRM8r92HE 9BIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qk2el+WF97Q2nm6ix8BaxsOCZ8aWgAUEJaTaU8DE3pI=; b=Yz7MMSG++52u33qN7wC38Xj3SrTJQmT34yNq7LOZFR31Txp45m9JNN9Vszlp6dCObD HckHtqbRUtLg+TPk+DmR2CHiQ/nc+amvHBYmngp8E8A02CLzOebKbVvxLisipJ48PuBT VBQMlx56/XRo+IUeHAix8BVddhvg5ksHh2qBoZ8FK2yGBC81Pdw2dPM61si9Gx1VbwIL iE1NiT4mUdxbgwverB1j/A7bTahgAIFnrMIn/IOLPPIQdfp/Eah0AQ8esxvIWd81rk3p YAVlVO2efgY04eUOCtA+oyAElz71XSla7idWHEfMxPTdDzPohE9B55rSihvRtopP+3Mx 5UzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si712989ejd.126.2019.09.14.16.36.54; Sat, 14 Sep 2019 16:37:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728576AbfINVDM (ORCPT + 99 others); Sat, 14 Sep 2019 17:03:12 -0400 Received: from muru.com ([72.249.23.125]:32928 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbfINVDL (ORCPT ); Sat, 14 Sep 2019 17:03:11 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 03F5B820B; Sat, 14 Sep 2019 21:03:41 +0000 (UTC) From: Tony Lindgren To: Matt Mackall , Herbert Xu , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: linux-crypto@vger.kernel.org, Aaro Koskinen , Adam Ford , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Sebastian Reichel , Tero Kristo , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 4/7] hwrng: omap3-rom - Initialize default quality to get data Date: Sat, 14 Sep 2019 14:02:57 -0700 Message-Id: <20190914210300.15836-5-tony@atomide.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190914210300.15836-1-tony@atomide.com> References: <20190914210300.15836-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Similar to commit 62f95ae805fa ("hwrng: omap - Set default quality") we need to initialize the default quality for the RNG to be used. The symptoms of this problem is that doing hd /dev/random does not produce much data at all. Cc: Aaro Koskinen Cc: Adam Ford Cc: Pali Rohár Cc: Sebastian Reichel Cc: Tero Kristo Signed-off-by: Tony Lindgren --- drivers/char/hw_random/omap3-rom-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_random/omap3-rom-rng.c --- a/drivers/char/hw_random/omap3-rom-rng.c +++ b/drivers/char/hw_random/omap3-rom-rng.c @@ -88,6 +88,7 @@ static int omap3_rom_rng_read(struct hwrng *rng, void *data, size_t max, bool w) static struct hwrng omap3_rom_rng_ops = { .name = "omap3-rom", + .quality = 900, }; static int omap3_rom_rng_probe(struct platform_device *pdev) -- 2.23.0