[PATCH v2 0/4] Add CMDQ API for upcoming ISP feature

From: Jason-JH . Lin
Date: Wed Mar 06 2024 - 20:35:22 EST


From: Jason-jh Lin <jason-jh.lin@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

In order to support the upcoming ISP functions, some CMDQ APIs
need to be prepared:
1. cmdq_pkt_mem_move():
For memory or register value from copy src_addr to dst_addr.
2. cmdq_pkt_poll_addr():
Extending cmdq_pkt_poll() to support polling the register address
which doesn't have a subsys id.
3. cmdq_pkt_acquire_event():
To support mutex_lock protection between GCE threads.

Change in v2:
1. Change the return variable from 'err' to 'ret'.
2. Add more comment and commit message.
3. Drop the last PATCH 5/5 in v1.

Change in RESEND v1:
1. Remove Change-Id in commit message.

Jason-JH.Lin (4):
soc: mediatek: mtk-cmdq: Add specific purpose register definitions for
GCE
soc: mediatek: mtk-cmdq: Add cmdq_pkt_mem_move() function
soc: mediatek: mtk-cmdq: Add cmdq_pkt_poll_addr() function
soc: mediatek: mtk-cmdq: Add cmdq_pkt_acquire_event() function

drivers/soc/mediatek/mtk-cmdq-helper.c | 90 ++++++++++++++++++++++++++
include/linux/soc/mediatek/mtk-cmdq.h | 52 +++++++++++++++
2 files changed, 142 insertions(+)

--
2.18.0