mailbox/omap: check for any unread messages during suspend
authorSuman Anna <s-anna@ti.com>
Wed, 6 Apr 2016 23:37:19 +0000 (18:37 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 26 Apr 2016 04:49:38 +0000 (10:19 +0530)
commit9f0cee984a25a34c169dac67a11d9c951727e47a
tree9f7c923daa8ca56e1be6162802f46f4a37a849d9
parentaf1d2f5cb9d24f0e477158dada6baf893a32ee04
mailbox/omap: check for any unread messages during suspend

The OMAP mailbox driver is used by clients to communicate with remote
processors in general. The mailbox clients are expected to have stopped
communicating with these remote processors during a system suspend. The
OMAP mailbox fifos are expected to not have any messages as such. Add a
check for any pending unprocessed messages in the suspend callback, to
detect any communication protocol issues of the mailbox clients. The
system suspend is aborted if any messages are found.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/omap-mailbox.c