Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1015952ybg; Mon, 27 Jul 2020 05:54:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaAAfc/FwcwNIl/Jxnuf9rm9hJwPU1oEmS1ESJqycz5MRihAHtzior7Kf0Alx12YPIGBOH X-Received: by 2002:a17:906:7f90:: with SMTP id f16mr20648411ejr.507.1595854454582; Mon, 27 Jul 2020 05:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595854454; cv=none; d=google.com; s=arc-20160816; b=r18g/WMpfvvOq4ObS9EirmaYW638PUX0L9hWelTdGE28bxw/waShxwoBqxDPvm6rOv tHwjWKzPQhXwp56eo5l0iIcQ1hQ1OE200xdq8g2dC8bI89CUkFgSmr3TvIIEiWVHS18Y JQU9ClH7QFpi4q8jcExku4PTkxd5TLG0DjQya3cbYxTapCq4EufB9PvUJAWtQkWjfnMo N34tmu+0mNjE1gEwACmMYxU4ASrhhe0aukgJ3ixjrltdoFYitNKuOA4ox8McwB9fNR/j efHbtt6UkB64co9pKmnUJlIpz/2o7qrRRe/2dlthzeCJuD3PHr2TUl+phg9ppKTTe0+g IXkg== 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=41Jfrvt2aSJAVeVutlDw6eAW8MxiMrOSKMv1BPYDYTo=; b=P4wdYKJwCA9s12JBjWUnIGiOPJ+v28pGltrnTNH/o8Hn6ThNjNEUC6+dljF8xE4yHV fO5UH67XAkJh90Sj7sOYm6YPJ+YTA7s1BDg1Sa4d5qtTzBNGBnRpITURVYfBK1kpFoS5 3Vq6owMJD+OTsEptjRBM010GNFeVL3GlUvpcbHGAYtaMbzZ3Wv1B2aVC3mZk4UKey1CK 4ZLmVqeu35eC+yp3UFpNmH+bolvTSk/No2qBAfnTxoh9+911Utr6lShT1Dmwj81kkDh/ zyCL9V5Q54YKPeb7r8ibIFXHZnEmho+KQJ5PiG8ha5HtJdkUfKKZfzUFzVmwHADUB+gL XcHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 b6si3924816eja.208.2020.07.27.05.53.43; Mon, 27 Jul 2020 05:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728424AbgG0Mw3 (ORCPT + 99 others); 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 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 --- 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); -- On Mon, Jul 27, 2020 Fabian Estevam wrote: > Horia has already sent a patch series that adds imx6ull rngb support: > https://lkml.org/lkml/2020/7/23/173 That happens when patches are sent upstream one year after writing.... Can you please add the third patch of the series? regards 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