mailbox/bcm2835: Fix mailbox full detection.
authorEric Anholt <eric@anholt.net>
Wed, 13 May 2015 20:10:32 +0000 (13:10 -0700)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 13 Jun 2015 10:50:39 +0000 (16:20 +0530)
commit7d641938aa2ae433a97cc65ec622547cfe08f2ed
treeb054804a80400f4b1af73d9911d13f659f8c6ea1
parent07a7dba17132d7ebc5d9f34a06baedf2308ccc01
mailbox/bcm2835: Fix mailbox full detection.

With the VC reader blocked and the ARM writing, MAIL0_STA reads empty
permanently while MAIL1_STA goes from empty (0x40000000) to non-empty
(0x00000001-0x00000007) to full (0x80000008).

This bug ended up having no effect on us, because all of our
transactions in the client driver were synchronous and under a mutex.

Suggested-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm2835-mailbox.c