Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp987353imc; Mon, 11 Mar 2019 04:06:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzhebhsl4mWwPQ55lf21Lag8GqArp4pUWqJpeoMqWHI/suHH+coWbjrqvdrkeS+zGKf8PZ X-Received: by 2002:a17:902:2f:: with SMTP id 44mr28233121pla.139.1552302383141; Mon, 11 Mar 2019 04:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552302383; cv=none; d=google.com; s=arc-20160816; b=Ksy4IYB1+/NEU+79/mQk7+wONqu5MT5f6CbVBWi0p2GJwmRVxV1gp6VAulEjIT37n2 mUcxdk1G+Eg71Tk1UJHhXu0KH0j2Aq4tziNwEinpyoJsCEISQEQIl3bI8cpDcOrJoWjB s0kZ1yPH9II/9y7vtSPhLXTXGqSdoHyqqibuP7onoR8jnjvK/uySLvdka3KmURy0TaJ2 ot/DX03Otp4uVhzauIUibwDi8Wlsy7mbrVmhFJEAUv2Bt3ZJybZplERFtMziZmr8vTrI ob2o18/4ksvImkchdnE+hzu7Smi1VGh3EmeAkAlmCJJa4diTL2a0FHxDUKdYD8+x3mLT gqCw== 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 :message-id:date:subject:cc:to:from; bh=wNpMoZ5Rh6IHE40f89DvMWHqH0DMFIwiMEDnMcxG3cA=; b=UIKuFdRa7GWTYMjevfcsxPILvSvG/0SNPqYy4UxurdLk4cuh+0wt3MB56GLHGx7D5Z BXFCrcPEqc4xgjUwW9xEiudztBcUj1HKfzMNI8WtNoZy7A2PlFmCOwFArpM46oQXbNOM 96FalAr3NZZL6jGjQTZqHAijKtLy95YyWpelnBVKIrtv9E1HZvDBXKHoE8sVvv6YmqU9 wrQ3muE9xSfwoiUAi9LIkkMsBgpS2DCGLhaoxUNT4YAf6gwYvXKn4yHLOazfCBY949fE Pk0Vdsmdq/T+KAml73C6iG8ZGVwNrFO5tQFFEcEvyrm1f9VeyH6l0aVJoq59IUomh6YH ZQhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 j71si5060075pfc.280.2019.03.11.04.05.56; Mon, 11 Mar 2019 04:06:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727340AbfCKLFL (ORCPT + 99 others); Mon, 11 Mar 2019 07:05:11 -0400 Received: from magratgarlick.emantor.de ([78.46.208.201]:40532 "EHLO margratgarlick.emantor.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725839AbfCKLFL (ORCPT ); Mon, 11 Mar 2019 07:05:11 -0400 X-Greylist: delayed 365 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Mar 2019 07:05:10 EDT Received: by margratgarlick.emantor.de (Postfix, from userid 114) id 16B3FCD31F; Mon, 11 Mar 2019 11:59:05 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on magratgarlick.emantor.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from localhost (unknown [IPv6:2001:67c:670:202:7ba8:5e41:1591:d723]) by margratgarlick.emantor.de (Postfix) with ESMTPSA id 7A98FCCB32; Mon, 11 Mar 2019 11:59:02 +0100 (CET) From: Rouven Czerwinski To: Herbert Xu Cc: kernel@pengutronix.de, Rouven Czerwinski , Deepak Saxena , Matt Mackall , Arnd Bergmann , Greg Kroah-Hartman , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hwrng: omap - Set default quality Date: Mon, 11 Mar 2019 11:58:57 +0100 Message-Id: <20190311105857.30792-1-r.czerwinski@pengutronix.de> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Newer combinations of the glibc, kernel and openssh can result in long initial startup times on OMAP devices: [ 6.671425] systemd-rc-once[102]: Creating ED25519 key; this may take some time ... [ 142.652491] systemd-rc-once[102]: Creating ED25519 key; done. due to the blocking getrandom(2) system call: [ 142.610335] random: crng init done Set the quality level for the omap hwrng driver allowing the kernel to use the hwrng as an entropy source at boot. Signed-off-by: Rouven Czerwinski --- drivers/char/hw_random/omap-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/omap-rng.c b/drivers/char/hw_random/omap-rng.c index b65ff6962899..e9b6ac61fb7f 100644 --- a/drivers/char/hw_random/omap-rng.c +++ b/drivers/char/hw_random/omap-rng.c @@ -443,6 +443,7 @@ static int omap_rng_probe(struct platform_device *pdev) priv->rng.read = omap_rng_do_read; priv->rng.init = omap_rng_init; priv->rng.cleanup = omap_rng_cleanup; + priv->rng.quality = 900; priv->rng.priv = (unsigned long)priv; platform_set_drvdata(pdev, priv); -- 2.21.0