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

Commit b156b913 authored by Olav Haugan's avatar Olav Haugan
Browse files

drivers: soc: qcom: Add random bits to pool



Add hardware generated random data to the kernel random pool.

Change-Id: Iefdf836928ea68a64c4e74c64865b16ea632790c
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent c4011d62
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@
 */
 */


#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/random.h>
#include <linux/hw_random.h>
#include <linux/io.h>
#include <linux/io.h>


#include <soc/qcom/scm.h>
#include <soc/qcom/scm.h>
@@ -50,7 +50,7 @@ void __init init_random_pool(void)
	if (!ret) {
	if (!ret) {
		dmac_inv_range(random_buffer, random_buffer +
		dmac_inv_range(random_buffer, random_buffer +
						RANDOM_BUFFER_SIZE);
						RANDOM_BUFFER_SIZE);
		add_device_randomness(random_buffer, SZ_512);
		add_hwgenerator_randomness(random_buffer, SZ_512, SZ_512 << 3);
	}
	}
}
}