mailbox: mediatek: implement flush function
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Mon, 17 Feb 2020 09:05:31 +0000 (17:05 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 20 Mar 2020 04:00:32 +0000 (23:00 -0500)
commitb0524f7c963532c1cd33ba5d89e813d5763160d0
tree88d113af184c89922ef262dd5c488e45b533ecf0
parent19d8e335d58a961a7ed377e5e2e63664b92c0b9c
mailbox: mediatek: implement flush function

For client driver which need to reorganize the command buffer, it could
use this function to flush the send command buffer.
If the channel doesn't be started (usually in waiting for event), this
function will abort it directly.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-cmdq-mailbox.c