soc: mediatek: cmdq: Add parameter shift_pa to cmdq_pkt_jump()
authorChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 22 Feb 2024 15:41:10 +0000 (15:41 +0000)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 23 Apr 2024 10:16:53 +0000 (12:16 +0200)
commitade17653411284e8f7d07279097039f8b84f85d3
treee8c3f1e099eeb9e04040d17bea3184d0c7224bdd
parented4d5ab179b9f0a60da87c650a31f1816db9b4b4
soc: mediatek: cmdq: Add parameter shift_pa to cmdq_pkt_jump()

In original design, cmdq_pkt_jump() call cmdq_get_shift_pa() every
time to get shift_pa. But the shift_pa is constant value for each
SoC, so client driver just need to call cmdq_get_shift_pa() once
and pass shift_pa to cmdq_pkt_jump() to prevent frequent function
call.

Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Link: https://lore.kernel.org/r/20240222154120.16959-3-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