From: Stephen Warren Date: Tue, 14 Jan 2014 02:50:12 +0000 (-0700) Subject: ARM: bcm2835: fix mailbox timeout X-Git-Tag: v2014.01~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=004c10598b648341c08ebcbf77e9385a064aec47;p=oweals%2Fu-boot.git ARM: bcm2835: fix mailbox timeout 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 Reviewed-by: Andre Heider Signed-off-by: Stephen Warren --- diff --git a/arch/arm/cpu/arm1176/bcm2835/mbox.c b/arch/arm/cpu/arm1176/bcm2835/mbox.c index 4daf1e410c..3b17a31eac 100644 --- a/arch/arm/cpu/arm1176/bcm2835/mbox.c +++ b/arch/arm/cpu/arm1176/bcm2835/mbox.c @@ -8,7 +8,7 @@ #include #include -#define TIMEOUT (100 * 1000) /* 100mS in uS */ +#define TIMEOUT 1000 /* ms */ int bcm2835_mbox_call_raw(u32 chan, u32 send, u32 *recv) {