mailbox/omap: add support for suspend/resume
authorSuman Anna <s-anna@ti.com>
Wed, 6 Apr 2016 23:37:18 +0000 (18:37 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 26 Apr 2016 04:49:38 +0000 (10:19 +0530)
commitaf1d2f5cb9d24f0e477158dada6baf893a32ee04
treed88c0fd9404e510c205a535f1c329bdba6a68b36
parent2240f8aefcaea151653e70fbf3eef09650fa027c
mailbox/omap: add support for suspend/resume

Support has been added to the OMAP mailbox driver to allow it
to work across a system suspend/resume. The OMAP mailbox driver
requires only the interrupt configuration registers to be saved
and restored, and this is done in the suspend/resume callbacks.
The registers need to be saved only if there are active clients
at the time of suspend. The enabling and disabling of the mailbox
clocks is done automatically by the omap_device layer.

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