ARM: bcm283x mbox: Fix send status register
authorFabian Vogt <fvogt@suse.com>
Tue, 16 Jul 2019 11:09:47 +0000 (13:09 +0200)
committerMatthias Brugger <mbrugger@suse.com>
Fri, 6 Sep 2019 16:16:59 +0000 (18:16 +0200)
commit49822442edd910efdf12eb8070a9c9cc7c48037d
tree7ba8e8c0a6ce6fda923a12e6cdf32a1b51897a9c
parentd39221f33f0e78cc80d1304ab4ca4e4a3886fbff
ARM: bcm283x mbox: Fix send status register

Before we can send a message to the mailbox we have to check that there
is space to do so. Therefore we poll the status register. But up to now
the wrong status register, the one of mailbox 0, was checked. Fix this
by polling the status regiser of mailbox 1.

Signed-off-by: Fabian Vogt <fvogt@suse.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
[mb: rename registers and update commit message]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
arch/arm/mach-bcm283x/include/mach/mbox.h
arch/arm/mach-bcm283x/mbox.c