mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 00:59:06 +00:00
soc: mediatek: cmdq: Fix typo of CMDQ_JUMP_RELATIVE
[ Upstream commited4d5ab179
] For cmdq jump command, offset 0 means relative jump and offset 1 means absolute jump. cmdq_pkt_jump() is absolute jump, so fix the typo of CMDQ_JUMP_RELATIVE in cmdq_pkt_jump(). Fixes:946f1792d3
("soc: mediatek: cmdq: add jump function") Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20240222154120.16959-2-chunkuang.hu@kernel.org Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0cac39347f
commit
19e9452d73
1 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,8 @@
|
|||
#define CMDQ_POLL_ENABLE_MASK BIT(0)
|
||||
#define CMDQ_EOC_IRQ_EN BIT(0)
|
||||
#define CMDQ_REG_TYPE 1
|
||||
#define CMDQ_JUMP_RELATIVE 1
|
||||
#define CMDQ_JUMP_RELATIVE 0
|
||||
#define CMDQ_JUMP_ABSOLUTE 1
|
||||
|
||||
struct cmdq_instruction {
|
||||
union {
|
||||
|
@ -397,7 +398,7 @@ int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr)
|
|||
struct cmdq_instruction inst = {};
|
||||
|
||||
inst.op = CMDQ_CODE_JUMP;
|
||||
inst.offset = CMDQ_JUMP_RELATIVE;
|
||||
inst.offset = CMDQ_JUMP_ABSOLUTE;
|
||||
inst.value = addr >>
|
||||
cmdq_get_shift_pa(((struct cmdq_client *)pkt->cl)->chan);
|
||||
return cmdq_pkt_append_command(pkt, inst);
|
||||
|
|
Loading…
Reference in a new issue