summaryrefslogtreecommitdiffstats
path: root/drivers/mailbox
diff options
context:
space:
mode:
authorjason-jh.lin <jason-jh.lin@mediatek.com>2021-09-29 09:08:07 +0200
committerJassi Brar <jaswinder.singh@linaro.org>2021-10-16 21:39:49 +0200
commitce1537fe288469bf68ee0aabdb860a790b4755ef (patch)
tree42c9ca2687f50dda95c9e76d6b72f95dd4efce7a /drivers/mailbox
parentMAINTAINERS: Update Mun Yew Tham as Altera Mailbox Driver maintainer (diff)
downloadlinux-ce1537fe288469bf68ee0aabdb860a790b4755ef.tar.xz
linux-ce1537fe288469bf68ee0aabdb860a790b4755ef.zip
mailbox: Remove WARN_ON for async_cb.cb in cmdq_exec_done
Because mtk_drm_crtc_update_config is not using cmdq_pkt_flush_async, it won't have pkt->async_cb.cb anymore. So remove the WARN_ON check of pkt->async_cb.cb at cmdq_exec_done. Fixes: 1b6b0ce2240e ("mailbox: mtk-cmdq: Use mailbox rx_callback") Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com> Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'drivers/mailbox')
-rw-r--r--drivers/mailbox/mtk-cmdq-mailbox.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c
index 505b4988680b..4e9517efac29 100644
--- a/drivers/mailbox/mtk-cmdq-mailbox.c
+++ b/drivers/mailbox/mtk-cmdq-mailbox.c
@@ -195,7 +195,6 @@ static void cmdq_task_exec_done(struct cmdq_task *task, int sta)
struct cmdq_task_cb *cb = &task->pkt->async_cb;
struct cmdq_cb_data data;
- WARN_ON(cb->cb == (cmdq_async_flush_cb)NULL);
data.sta = sta;
data.data = cb->data;
data.pkt = task->pkt;