mailbox: Remove WARN_ON for async_cb.cb in cmdq_exec_done
authorjason-jh.lin <jason-jh.lin@mediatek.com>
Wed, 29 Sep 2021 07:08:07 +0000 (15:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:34 +0000 (19:16 +0100)
commit51911aa157caf8bba831ce59c4e4093399237116
tree193059d8e5e424d784627e02851fbca8210ac6e8
parent2a0b9ebec182877c81b065a3e7c4bc5794fb825b
mailbox: Remove WARN_ON for async_cb.cb in cmdq_exec_done

[ Upstream commit ce1537fe288469bf68ee0aabdb860a790b4755ef ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mailbox/mtk-cmdq-mailbox.c