* [U-Boot] [PATCH] ARM: bcm2835: fix mailbox timeout
@ 2013-12-14 3:48 Stephen Warren
2013-12-16 7:59 ` Andre Heider
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2013-12-14 3:48 UTC (permalink / raw)
To: u-boot
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>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
---
Albert, I believe this implies that my "ARM: rpi_b: power on SDHCI and
USB HW modules" can be applied now.
arch/arm/cpu/arm1176/bcm2835/mbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/arm1176/bcm2835/mbox.c b/arch/arm/cpu/arm1176/bcm2835/mbox.c
index 4daf1e4..3b17a31 100644
--- a/arch/arm/cpu/arm1176/bcm2835/mbox.c
+++ b/arch/arm/cpu/arm1176/bcm2835/mbox.c
@@ -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)
{
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] ARM: bcm2835: fix mailbox timeout
2013-12-14 3:48 [U-Boot] [PATCH] ARM: bcm2835: fix mailbox timeout Stephen Warren
@ 2013-12-16 7:59 ` Andre Heider
0 siblings, 0 replies; 2+ messages in thread
From: Andre Heider @ 2013-12-16 7:59 UTC (permalink / raw)
To: u-boot
On Fri, Dec 13, 2013 at 08:48:46PM -0700, Stephen Warren wrote:
> 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>
> Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-by: Andre Heider <a.heider@gmail.com>
Btw, the "get timing" mbox call I mentioned the other day is not what
I thought it is. I tried it and it doesn't describe how long the "power on"
call would take. I get "1" for every device except UART, for which 40000
was returned iirc.
Thanks,
Andre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-16 7:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-14 3:48 [U-Boot] [PATCH] ARM: bcm2835: fix mailbox timeout Stephen Warren
2013-12-16 7:59 ` Andre Heider
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox