summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h
diff options
context:
space:
mode:
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>2021-09-11 18:39:18 +0200
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2022-02-18 20:28:08 +0300
commit787067989c31971e0fbbaf910e6c5ac0d4f41d64 (patch)
treebbef89a8bc76090beb6add5039845aebd4112b43 /drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h
parent5752c921d267101e1abfc74a27a003b5c04e72bb (diff)
downloadlinux-stable-787067989c31971e0fbbaf910e6c5ac0d4f41d64.tar.gz
linux-stable-787067989c31971e0fbbaf910e6c5ac0d4f41d64.tar.bz2
linux-stable-787067989c31971e0fbbaf910e6c5ac0d4f41d64.zip
drm/msm/dpu: Add a function to retrieve the current CTL status
Add a function that returns whether the requested CTL is active or not: this will be used in a later commit to fix command mode panel issues. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> Link: https://lore.kernel.org/r/20210911163919.47173-1-angelogioacchino.delregno@somainline.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h')
-rw-r--r--drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h
index 806c171e5df2..ac1544474022 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h
@@ -62,6 +62,13 @@ struct dpu_hw_ctl_ops {
void (*trigger_start)(struct dpu_hw_ctl *ctx);
/**
+ * check if the ctl is started
+ * @ctx : ctl path ctx pointer
+ * @Return: true if started, false if stopped
+ */
+ bool (*is_started)(struct dpu_hw_ctl *ctx);
+
+ /**
* kickoff prepare is in progress hw operation for sw
* controlled interfaces: DSI cmd mode and WB interface
* are SW controlled