]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ARM: bcm2835: fix mailbox timeout
authorStephen Warren <swarren@wwwdotorg.org>
Tue, 14 Jan 2014 02:50:12 +0000 (19:50 -0700)
committerTom Rini <trini@ti.com>
Mon, 20 Jan 2014 22:11:39 +0000 (17:11 -0500)
My original intention was to have a 100ms timeout. However, the timer
operations used return values in ms not us, so we ended up with a 100s
timeout instead. Fixing this exposes that some operations need longer
to operate than 100ms, so bump the timeout up to a whole second.

Reported-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
arch/arm/cpu/arm1176/bcm2835/mbox.c

index 4daf1e410c775ba96214a8d7ab5517b92b2bcf18..3b17a31eacfd6e5ab092e53bca87c4d0d408ca92 100644 (file)
@@ -8,7 +8,7 @@
 #include <asm/io.h>
 #include <asm/arch/mbox.h>
 
-#define TIMEOUT (100 * 1000) /* 100mS in uS */
+#define TIMEOUT 1000 /* ms */
 
 int bcm2835_mbox_call_raw(u32 chan, u32 send, u32 *recv)
 {