Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp229325imj; Wed, 13 Feb 2019 07:24:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IYdGN2HzlE9LJomo52CgF4zcZ3/uIt4px2Yf7g3BRMQo0AzHFSk++qy8xgw33s6y15g710P X-Received: by 2002:a62:528e:: with SMTP id g136mr1048642pfb.111.1550071454462; Wed, 13 Feb 2019 07:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550071454; cv=none; d=google.com; s=arc-20160816; b=1DsjyjlvTpLmCzVK6flr3/ZeozLUjq3rHtEVbvOecfLjwYi5FtBBFN1oqJsVDzYkSq 8Qq6Bff9Vu6fZkI6ZLCr6gjjSDI65XwTqk2O8QoFPjzWg1MorRmubbK/8k5CXXixEsGf LrV2oRoDrN8ENjSQNhJU6x3a7VHThcrq51sFPSAPP/IV0yREegNQ7HSfYmU66HD7jb/f Uy2ssFH57uzr4st22PoovxfYFPxjOLr2hchVcO+JjGT0GDp0Lz66lDDEGwGh1NIBkbMn pN2M0BMfYwji/9hkjFG+2Jz+1jj2MhFKAtgnoBt9gxVS7p5ubc48KYwY4yjUKM1tJecq iTKw== 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=d8abN+SmyYlndBTKMRcZ+g735z20NShExaKfQo+gvUQ=; b=DKx8frz6jEbVCu5ByO79kOQQ2ig+/76MPlBRF7kyNCqxHmbR21gPv3YF2l3HS6HVeH 3tt93tKvkHB2QcGgD4nNWCH6rTHXtlLXlpYjgTyWqV8qIYlqBQCB2uukqJ4BR8Gsf9eD XNGrbtqXNlGHeZRzMD3gpoQNm7PjA2K6AwHTyEsYy4d0AkCWhmmNpp3G3JDCvD3E/L+G 4GAdKKG65+ndpgQaOJcXRWVdI7Atq7Cfuvv9YRd7RlnFwrvERTAbhvnSKayHpNjz4X86 KjzV7rdCqt6jXjMOt/Oy+3ddBkalBSC8tVh0CdhAGbNfeQ9yhq4ZFzwRIvF0tSLdhoBv ZLBA== 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 e10si1184660pgm.503.2019.02.13.07.23.58; Wed, 13 Feb 2019 07:24:14 -0800 (PST) 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 S2391066AbfBMOtN (ORCPT + 99 others); Wed, 13 Feb 2019 09:49:13 -0500 Received: from mx1.emlix.com ([46.4.235.150]:56340 "EHLO mx1.emlix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726056AbfBMOtN (ORCPT ); Wed, 13 Feb 2019 09:49:13 -0500 Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 57A6325F533; Wed, 13 Feb 2019 15:49:11 +0100 (CET) From: Philipp Puschmann To: horia.geanta@nxp.com Cc: aymen.sghaier@nxp.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, o.rempel@pengutronix.de, Philipp Puschmann Subject: [PATCH] crypto: caam: set hwrng quality level Date: Wed, 13 Feb 2019 15:49:07 +0100 Message-Id: <20190213144907.5696-1-philipp.puschmann@emlix.com> X-Mailer: git-send-email 2.20.1 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 When quality is set to 0 this driver is not used as randomness source by HWRNG framework at all. So set the quality and finally make this driver work. The value of the quality was discussed before ( see https://patchwork.kernel.org/patch/9850669/ ) and it is still a rough value. Signed-off-by: Philipp Puschmann --- drivers/crypto/caam/caamrng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/caam/caamrng.c b/drivers/crypto/caam/caamrng.c index a387c8d49a62..b6fd60f7638e 100644 --- a/drivers/crypto/caam/caamrng.c +++ b/drivers/crypto/caam/caamrng.c @@ -294,6 +294,7 @@ static struct hwrng caam_rng = { .name = "rng-caam", .cleanup = caam_cleanup, .read = caam_read, + .quality = 990, }; static void __exit caam_rng_exit(void) -- 2.20.1