Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4743262pjb; Mon, 27 Jul 2020 04:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9v0KqbuwJxaCM1o/3pgr/Ypi/J1kLLoWAaDpTmKXfWsI8unx7X+C6D9ajxShvdvJmkt/0 X-Received: by 2002:a17:906:748:: with SMTP id z8mr20995061ejb.257.1595848086390; Mon, 27 Jul 2020 04:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595848086; cv=none; d=google.com; s=arc-20160816; b=V6uZlIh3cCWlgvB/Mv4wlhEE4l8yv+Wvtd6B/CrEyod2u+lfKC4/Nb0BJj5bghxRNU Qweek7F11eKqLvLIlNhBgtDmip/LnRyZKOEaeqcFMtQT7+/ZqoL1sY35Zzdymq1U+X4K 1Hk9fIE7+3I3Hffuo5zZB7LqwlYpAaR7ZmQhxsGVf9UYsOn0QGMWOAGRhFjk2JjxVYHP 7tHhoBUrX4j7Kl0H3wxpM7vqJaynCQBFCrVCGkCGs1YB/aPiqiti41DYlsQrcsyyFWLU asNi2XCLyvsZKwf2oOJOI1oNPIlzEqv+ht2xmGe3HO68iONh40sb6DHsP09+n7MPeieF TrfQ== 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=+87HOHgudGqYqTfH3Rb22pj6gj3ZVSZ+qOB7F4u61D0=; b=JAoPGJml5NAjLpwq6C6kOqkCSgSY0yIKqEbYCa7FCoAfwTRXaXZL6BC7Y8CK+L4yP/ l6NLVbXueGllBb5r2ue5JxzlhVOwYdlRAo2zxVS+19XlOdVZdbB2ebhEPJnRz8dAlJh3 Bl4NBxMuN1eDCmqXy6Z+zwk6BhKyrpAYnfR7fZj73aHS6pLg3L3y8k/QUEE/blxn2q9w l0kP6VCbH+sgMKzSRuztPywCuUMWrt49waS5RfN9fa/s1CKiEZcuJlwxyEsrioj7Hc7p q6ZVLjZxDcaMph2Uv8foPoynFBzEK3KxiNfzJW9nOVV32PJiVMxGRlRrYvvFQFHkyukH bC/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm15si5011915ejb.561.2020.07.27.04.07.44; Mon, 27 Jul 2020 04:08:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728447AbgG0LDG (ORCPT + 99 others); Mon, 27 Jul 2020 07:03:06 -0400 Received: from mailout06.rmx.de ([94.199.90.92]:57682 "EHLO mailout06.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726942AbgG0LDG (ORCPT ); Mon, 27 Jul 2020 07:03:06 -0400 Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout06.rmx.de (Postfix) with ESMTPS id 4BFcNN3p71z9w11; Mon, 27 Jul 2020 13:03:00 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4BFcLs4g65z2xDJ; Mon, 27 Jul 2020 13:01:41 +0200 (CEST) Received: from N95HX1G2.wgnetz.xx (192.168.54.121) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 Jul 2020 12:59:47 +0200 From: Christian Eggers To: Rob Herring , Shawn Guo , "Sascha Hauer" CC: Christian Eggers , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Matt Mackall , Herbert Xu , Arnd Bergmann , "Greg Kroah-Hartman" , Martin Kaiser , PrasannaKumar Muralidharan , Anson Huang , , , , Subject: [PATCH 3/3] hwrng: imx-rngc - setup default RNG quality Date: Mon, 27 Jul 2020 12:57:16 +0200 Message-ID: <20200727105718.26225-4-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200727105718.26225-1-ceggers@arri.de> References: <20200727105718.26225-1-ceggers@arri.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.121] X-RMX-ID: 20200727-130145-4BFcLs4g65z2xDJ-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When hw_random device's quality is non-zero, it will automatically fill the kernel's entropy pool at boot. For this purpose, one conservative quality value is being picked up as the default value. Signed-off-by: Christian Eggers --- drivers/char/hw_random/imx-rngc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index f9c5ddd0276b..a62ff78bd7ea 100644 --- a/drivers/char/hw_random/imx-rngc.c +++ b/drivers/char/hw_random/imx-rngc.c @@ -285,6 +285,7 @@ static int imx_rngc_probe(struct platform_device *pdev) rngc->rng.init = imx_rngc_init; rngc->rng.read = imx_rngc_read; rngc->rng.cleanup = imx_rngc_cleanup; + rngc->rng.quality = 900; rngc->dev = &pdev->dev; platform_set_drvdata(pdev, rngc); -- Christian Eggers Embedded software developer Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918 Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477 Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler