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

Commit 33c8abce authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Olof Johansson
Browse files

ARM: ux500: read the correct soc_id number



Fix db8500_read_soc_id() to read all five soc_id number locations
instead of repeating the second one two times.

Signed-off-by: default avatarFabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent ee99ce89
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -191,7 +191,7 @@ static const char *db8500_read_soc_id(void)
	/* Throw these device-specific numbers into the entropy pool */
	/* Throw these device-specific numbers into the entropy pool */
	add_device_randomness(uid, 0x14);
	add_device_randomness(uid, 0x14);
	return kasprintf(GFP_KERNEL, "%08x%08x%08x%08x%08x",
	return kasprintf(GFP_KERNEL, "%08x%08x%08x%08x%08x",
			 readl((u32 *)uid+1),
			 readl((u32 *)uid+0),
			 readl((u32 *)uid+1), readl((u32 *)uid+2),
			 readl((u32 *)uid+1), readl((u32 *)uid+2),
			 readl((u32 *)uid+3), readl((u32 *)uid+4));
			 readl((u32 *)uid+3), readl((u32 *)uid+4));
}
}