]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mailbox: mtk-cmdq: Add cmdq private data to cmdq_pkt for generating instruction
authorJason-JH Lin <jason-jh.lin@mediatek.com>
Fri, 31 Oct 2025 15:56:30 +0000 (23:56 +0800)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 19 Jan 2026 11:57:44 +0000 (12:57 +0100)
commit266f35701b6f7ddd9521310eb5add01001d4a614
treebeecce867c8cb30172dfb9c684391730859e1aef
parent3da293d70005496317d1ff3a49b89c29dd7c21e8
mailbox: mtk-cmdq: Add cmdq private data to cmdq_pkt for generating instruction

Add the cmdq_mbox_priv structure to store the private data of GCE,
such as the shift bits of the physical address. Then, include the
cmdq_mbox_priv structure within the cmdq_pkt structure.

This allows CMDQ users to utilize the private data in cmdq_pkt to
generate GCE instructions when needed. Additionally, having
cmdq_mbox_priv makes it easier to expand and reference other GCE
private data in the future.

Add cmdq_get_mbox_priv() for CMDQ users to get all the private data
into the cmdq_mbox_priv of the cmdq_pkt.

Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
drivers/mailbox/mtk-cmdq-mailbox.c
include/linux/mailbox/mtk-cmdq-mailbox.h