Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1345775ybe; Fri, 13 Sep 2019 15:11:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrsIKYTMLXaBDNWCdj3oxMuwMWu711RLp3rADga4vf4REYiCoSYw8Btb19e2KbYNVTwjac X-Received: by 2002:aa7:d899:: with SMTP id u25mr49004223edq.289.1568412678413; Fri, 13 Sep 2019 15:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568412678; cv=none; d=google.com; s=arc-20160816; b=ZUb2J5ydS1aYWVJZUyowiyCYmeX1bdb634hwfzHVFZ550TPc+nD00R1R1/IiC+bm7e L7qdo9+DM2TvfBj5lPLuhm+6KsHPAU4BGPpZGJIhxpCzBAPkWPW8PeVkVf6T5mnidjWR wBBvAU9w374/q4/2Tet+kYCioOpv4KdCcpf+gzL824h1Sz35MSg/24/9Mpn8rOIeK190 m2pUKeXmVleDnHtCTbizymX2Sp5A7ZruRl3l7Nf5RqjRmXdJnI1KtHcRp2QGrgHBSMHz 2XPQMRcsp0scEDaWAT/iPtcleScxp4khaAXN7Np/tCadiL6k7lAoiN4Hc/a8fNSIi0Lc uqEg== 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=VE0YChjHbXROnwuj0qIvlVqceITDHhl/q/wR+id9rFg=; b=anwNdJXepE8sZBfVaXdC7qJ2TIAfgjpV7wr3TuYYAUUDAxs+495eFUks1FX3+AmAvv wk/zS7zv0wDZY5IuJRZIq11GgmA75no5SGbkcZwyrErhPhwTpWnfDssZUbBW31LLGld0 7QwwV4lcbOSLy82ohwpXnpPS+zqRP7h/obVqtB7+n2x/qmVa+ucc/FdukMJ6g+I3oBri IO7OKKzOFV+iQvQFUR8ZCf2eric8HW6cvx+SdcrQIRca62FFMBFAfOC1LOVOTCb+F7cG 96BL82mEb9aMDYZySMvdqUA/8f/UDOKDVal+wRzkB/E6RzH7LqLTJ1KX67NWTEhKQyo6 HORg== 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 b27si15715787ejq.314.2019.09.13.15.10.54; Fri, 13 Sep 2019 15:11: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 S2390615AbfIMWJf (ORCPT + 99 others); Fri, 13 Sep 2019 18:09:35 -0400 Received: from muru.com ([72.249.23.125]:60750 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390600AbfIMWJf (ORCPT ); Fri, 13 Sep 2019 18:09:35 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 2A79C8203; Fri, 13 Sep 2019 22:10:05 +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?= , Rob Herring , Tero Kristo , devicetree@vger.kernel.org Subject: [PATCH 4/6] hwrng: omap3-rom - Initialize default quality to get data Date: Fri, 13 Sep 2019 15:09:20 -0700 Message-Id: <20190913220922.29501-5-tony@atomide.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190913220922.29501-1-tony@atomide.com> References: <20190913220922.29501-1-tony@atomide.com> MIME-Version: 1.0 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. 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