From patchwork Mon Jul 27 12:45:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 11686845 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 669A81392 for ; Mon, 27 Jul 2020 12:52:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4E3BE2075A for ; Mon, 27 Jul 2020 12:52:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728424AbgG0Mw3 (ORCPT ); Mon, 27 Jul 2020 08:52:29 -0400 Received: from mailout06.rmx.de ([94.199.90.92]:36655 "EHLO mailout06.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728387AbgG0Mw3 (ORCPT ); Mon, 27 Jul 2020 08:52:29 -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 4BFfpc4w6hz9w5h; Mon, 27 Jul 2020 14:52:24 +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 4BFfnb69cVz2xbN; Mon, 27 Jul 2020 14:51:31 +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 14:49:43 +0200 From: Christian Eggers To: Fabio Estevam CC: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Martin Kaiser , , , , Christian Eggers Subject: [PATCH] hwrng: imx-rngc - setup default RNG quality Date: Mon, 27 Jul 2020 14:45:53 +0200 Message-ID: <20200727124552.4336-1-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [192.168.54.121] X-RMX-ID: 20200727-145137-4BFfnb69cVz2xbN-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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 Signed-off-by: Marco Felsch --- 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);