Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9836083 authored by AnilKumar Chimata's avatar AnilKumar Chimata
Browse files

hwrng: Add quality parameter to msm-rng driver



With the recent changes in upstream, certain parameters
are updated in the core random number generator driver.
So update HW rng driver to provide the quality estimation
of true entropy in RNG's bitstream. Value 700 corresponds
to 70% an arbitrary value, which is taken from 3.10.

Change-Id: I0d27e44a05473bcbc84af82c79565f87329b9ae7
Signed-off-by: default avatarAnilKumar Chimata <anilc@codeaurora.org>
parent 810bf9f3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2013,2015 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -156,6 +156,7 @@ static int msm_rng_probe(struct platform_device *pdev)
	rng->hwrng.init = msm_rng_init,
	rng->hwrng.cleanup = msm_rng_cleanup,
	rng->hwrng.read = msm_rng_read,
	rng->hwrng.quality = 700;

	ret = hwrng_register(&rng->hwrng);
	if (ret) {