Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp141425yba; Mon, 1 Apr 2019 03:32:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqrGbZlgEn2gnEq/8Twdk7tqMKeAXCkc41zZwPXSYQxlj3mMCy1Fk+5m13laDf1WpLYMM1 X-Received: by 2002:a65:6144:: with SMTP id o4mr22683663pgv.247.1554114763470; Mon, 01 Apr 2019 03:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554114763; cv=none; d=google.com; s=arc-20160816; b=kiMxL+0x2dE3y8GVwFTu/L/oYrNN9pJ8s8kS6itcKj7yv5oSzeL+07lVc1uw0ZnohC 0O5yWeeLm+setmaG2vk+3fFHm7zRBwu80i7fIl8bu55JZbfVd15fEHPpjVFFKWYma03E X95vMMQDcOGauMmfaaeEES8UIjVpAiqVjoR+8nz7cLQr/4Nl+KKOxagRYoFZq5wTSuz6 vnE6aMCEDb/BOSksrKB/kH4zQshq2JQ25hIY6cLCks9KDp2VPQses9KgyYcL+PC4gsex kP/XX+DFHF/jrC6Kj13jQ6M9tSrlrY/T1oUh99U6N5d0hIL91ByM5QaQmTrry4AFLR+L OjFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=kxwW8R4gYFfEprN/OEBGzsotgLtw9vOPTPfPQzCmCDg=; b=t46c7w06HlVXWrrNqvWCe5Ayv+Cp/OiWMOLTfNx84EGTeR4Dm2mx2eTI7Wok3qQS7g j8Wx25oLrGDBeHF4KnXgM3UPc3OoLt3Ay2gPKcGdtzMk6eSxt2WtkONWuw1IpfaiJWat NxI4sHulGwAp8Z30kWcOCuWgzpeJYM/DW2bgSTIf6Kb5t4SHcUttSMwSPu7Jg4jjFX8t r2402aZEGokc2cp+M9GigNvuD4CpheRELlM6d7GiwOZYHZRtvYMy45ldQp+UncWt+ueE 9rdiMSKMyIL5YaTJDjaZJoZKC99dxQjdyhaNd+gQ2ZhjVqQlddaTkXs9t8Amu7NuPfOL rtUg== 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 r63si8725109pfc.183.2019.04.01.03.32.27; Mon, 01 Apr 2019 03:32:43 -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 S1726905AbfDAKbl (ORCPT + 99 others); Mon, 1 Apr 2019 06:31:41 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:29498 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbfDAKbj (ORCPT ); Mon, 1 Apr 2019 06:31:39 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x31AQI9m023888; Mon, 1 Apr 2019 12:31:19 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2rhxt4j2ud-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 01 Apr 2019 12:31:19 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E9CEE34; Mon, 1 Apr 2019 10:31:18 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas22.st.com [10.75.90.92]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B3E7E25EA; Mon, 1 Apr 2019 10:31:18 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas22.st.com (10.75.90.92) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 1 Apr 2019 12:31:18 +0200 Received: from localhost (10.201.23.65) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.435.0; Mon, 1 Apr 2019 12:31:15 +0200 From: Lionel Debieve To: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Maxime Coquelin , Alexandre Torgue , Rob Herring , , , CC: Benjamin Gaignard , Ludovic Barre , Subject: [PATCH 2/2] hwrng: stm32 - set default random quality Date: Mon, 1 Apr 2019 12:30:46 +0200 Message-ID: <1554114646-18791-3-git-send-email-lionel.debieve@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554114646-18791-1-git-send-email-lionel.debieve@st.com> References: <1554114646-18791-1-git-send-email-lionel.debieve@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.65] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-01_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a default quality to hw_random device to be automatically set as new default entropy. Setting random quality will decrease the crng init time by switching to this hardware random source. Signed-off-by: Lionel Debieve --- drivers/char/hw_random/stm32-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 37b338a..0ef5b6a 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -161,6 +161,7 @@ static int stm32_rng_probe(struct platform_device *ofdev) #endif priv->rng.read = stm32_rng_read, priv->rng.priv = (unsigned long) dev; + priv->rng.quality = 900; pm_runtime_set_autosuspend_delay(dev, 100); pm_runtime_use_autosuspend(dev); -- 2.7.4