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: AnilKumar Chimata <anilc@codeaurora.org>
This commit is contained in:
parent
c1ef16be6d
commit
223fd81f3a
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2011-2013,2015,2017 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 = devm_hwrng_register(&pdev->dev, &rng->hwrng);
|
||||
if (ret) {
|
||||
|
|
Loading…
Add table
Reference in a new issue