OSDN Git Service

soc: mediatek: cmdq: Remove cmdq_pkt_flush()
authorChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 2 Dec 2020 23:58:55 +0000 (07:58 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Sun, 31 Jan 2021 11:35:46 +0000 (12:35 +0100)
commit1570db1da9f57dfbe5dfa3010233c98947497466
tree6599faf07c808400c412fc0e78c970a50e8b944a
parent207f13b419a60c56fb75baeb3d668de080514354
soc: mediatek: cmdq: Remove cmdq_pkt_flush()

rx_callback is a standard mailbox callback mechanism and could
cover the function of proprietary cmdq_task_cb, so it is better
to use the standard one instead of the proprietary one. But
register rx_callback should before mbox_request_channel(),
so remove cmdq_pkt_flush() and let client driver implement
its own synchronous flush.

Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Link: https://lore.kernel.org/r/20201202235856.7652-1-chunkuang.hu@kernel.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-cmdq-helper.c
include/linux/soc/mediatek/mtk-cmdq.h