From 73bee01bdc950957c20020d307ba9241c9bce92c Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Wed, 3 Oct 2012 14:26:12 +0200 Subject: [PATCH] --- yaml --- r: 339952 b: refs/heads/master c: 4040d10a3d44023703f81083bb90a3eb45a39eee h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-ux500/cpu-db8500.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 59c9474fa6c5..6d7376b7b7a5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a3a6c6a3a13c8fc946da86d0314f4c0d013e749d +refs/heads/master: 4040d10a3d44023703f81083bb90a3eb45a39eee diff --git a/trunk/arch/arm/mach-ux500/cpu-db8500.c b/trunk/arch/arm/mach-ux500/cpu-db8500.c index bcdfe6b1d453..50202a163e5d 100644 --- a/trunk/arch/arm/mach-ux500/cpu-db8500.c +++ b/trunk/arch/arm/mach-ux500/cpu-db8500.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #include #include @@ -24,7 +26,6 @@ #include #include #include -#include #include #include "devices-db8500.h" @@ -187,6 +188,8 @@ static const char *db8500_read_soc_id(void) { void __iomem *uid = __io_address(U8500_BB_UID_BASE); + /* Throw these device-specific numbers into the entropy pool */ + add_device_randomness(uid, 0x14); return kasprintf(GFP_KERNEL, "%08x%08x%08x%08x%08x", readl((u32 *)uid+1), readl((u32 *)uid+1), readl((u32 *)uid+2),