diff options
author | Thierry Reding <treding@nvidia.com> | 2018-11-28 12:54:10 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2018-12-22 07:31:26 +0300 |
commit | a8803d7421cc2be2ac12a8155e5d824f04259eff (patch) | |
tree | 76495c4a0e449dfaedfc1dc39b65f39ec8a33f67 /drivers/mailbox/hi6220-mailbox.c | |
parent | 2298a6f09f455f64bf253e6fb5c1ff72f38a6249 (diff) | |
download | linux-a8803d7421cc2be2ac12a8155e5d824f04259eff.tar.xz |
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>
Diffstat (limited to 'drivers/mailbox/hi6220-mailbox.c')
0 files changed, 0 insertions, 0 deletions