mailbox: mediatek: cmdq: clear task in channel before shutdown
authorDennis YC Hsieh <dennis-yc.hsieh@mediatek.com>
Sun, 5 Jul 2020 06:37:16 +0000 (14:37 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 4 Aug 2020 04:56:38 +0000 (23:56 -0500)
commit884996986347dbe3b735cfa9bc041dd98a533796
tree79277de1ab4665a190cf0d97ddf31a844c5b9736
parentbb2b06e08157c1f542506ce3ed59cc3309eacb78
mailbox: mediatek: cmdq: clear task in channel before shutdown

Do success callback in channel when shutdown. For those task not finish,
callback with error code thus client has chance to cleanup or reset.

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