]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: Support blocking transfers in atomic context
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 09:54:10 +0000 (10:54 +0100)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 22 Dec 2018 04:31:26 +0000 (22:31 -0600)
commit9b7dc5d55ff46d0c6bfbb45c289ff60daddf3ce3
tree76495c4a0e449dfaedfc1dc39b65f39ec8a33f67
parente2419f38e613d8886be1587c8548e3734588dded
mailbox: Support blocking transfers in atomic context

The mailbox framework supports blocking transfers via completions for
clients that can sleep. In order to support blocking transfers in cases
where the transmission is not permitted to sleep, add a new ->flush()
callback that controller drivers can implement to busy loop until the
transmission has been completed. A new mbox_flush() function can be
called by mailbox consumers in atomic context to make sure a transfer
has completed.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox.c
include/linux/mailbox_client.h
include/linux/mailbox_controller.h