soc: mediatek: cmdq: Add cmdq_pkt_eoc() helper function
authorChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 22 Feb 2024 15:41:13 +0000 (15:41 +0000)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 23 Apr 2024 10:16:54 +0000 (12:16 +0200)
commit3d86ced95d8c09d11c172f542edd40f58a4098fa
tree6e6feb79492e4a9f21bc92091a28b73f6e9673c6
parent698cdcb19579f9de005698f9dfb660ab6ec65d32
soc: mediatek: cmdq: Add cmdq_pkt_eoc() helper function

cmdq_pkt_eoc() append eoc command to CMDQ packet. eoc command
would ask GCE to generate IRQ. It's usually appended to the end
of packet to notify all command in the packet is done.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Link: https://lore.kernel.org/r/20240222154120.16959-6-chunkuang.hu@kernel.org
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
drivers/soc/mediatek/mtk-cmdq-helper.c
include/linux/soc/mediatek/mtk-cmdq.h