From: Fabio Baltieri <fabio.baltieri@linaro.org> To: Linus Walleij <linus.walleij@linaro.org>, Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Baltieri <fabio.baltieri@linaro.org> Subject: [PATCH] ARM: ux500: read the correct soc_id number Date: Wed, 20 Feb 2013 09:29:16 +0100 [thread overview] Message-ID: <1361348956-4387-1-git-send-email-fabio.baltieri@linaro.org> (raw) Fix db8500_read_soc_id() to read all five soc_id number locations instead of repeating the second one two times. Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org> --- arch/arm/mach-ux500/cpu-db8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index 5b286e0..4b5602b 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c @@ -199,7 +199,7 @@ static const char *db8500_read_soc_id(void) /* 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+0), readl((u32 *)uid+1), readl((u32 *)uid+2), readl((u32 *)uid+3), readl((u32 *)uid+4)); } -- 1.7.12.1
WARNING: multiple messages have this Message-ID (diff)
From: fabio.baltieri@linaro.org (Fabio Baltieri) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: ux500: read the correct soc_id number Date: Wed, 20 Feb 2013 09:29:16 +0100 [thread overview] Message-ID: <1361348956-4387-1-git-send-email-fabio.baltieri@linaro.org> (raw) Fix db8500_read_soc_id() to read all five soc_id number locations instead of repeating the second one two times. Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org> --- arch/arm/mach-ux500/cpu-db8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c index 5b286e0..4b5602b 100644 --- a/arch/arm/mach-ux500/cpu-db8500.c +++ b/arch/arm/mach-ux500/cpu-db8500.c @@ -199,7 +199,7 @@ static const char *db8500_read_soc_id(void) /* 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+0), readl((u32 *)uid+1), readl((u32 *)uid+2), readl((u32 *)uid+3), readl((u32 *)uid+4)); } -- 1.7.12.1
next reply other threads:[~2013-02-20 8:29 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-20 8:29 Fabio Baltieri [this message] 2013-02-20 8:29 ` [PATCH] ARM: ux500: read the correct soc_id number Fabio Baltieri 2013-03-04 6:14 ` Linus Walleij 2013-03-04 6:14 ` Linus Walleij
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1361348956-4387-1-git-send-email-fabio.baltieri@linaro.org \ --to=fabio.baltieri@linaro.org \ --cc=linus.walleij@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=srinidhi.kasagar@stericsson.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.