drm/msm/dpu: Drop unused poll_timeout_wr_ptr PINGPONG callback
authorMarijn Suijten <marijn.suijten@somainline.org>
Wed, 26 Apr 2023 22:37:26 +0000 (00:37 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 22 May 2023 07:14:17 +0000 (10:14 +0300)
This callback was migrated from downstream when DPU1 was first
introduced to mainline, but never used by any component.  Drop it to
save some lines and unnecessary confusion.

Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/534215/
Link: https://lore.kernel.org/r/20230411-dpu-intf-te-v4-12-27ce1a5ab5c6@somainline.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.h

index 3822e06..1dcbb75 100644 (file)
@@ -126,23 +126,6 @@ static bool dpu_hw_pp_get_autorefresh_config(struct dpu_hw_pingpong *pp,
        return !!((val & BIT(31)) >> 31);
 }
 
-static int dpu_hw_pp_poll_timeout_wr_ptr(struct dpu_hw_pingpong *pp,
-               u32 timeout_us)
-{
-       struct dpu_hw_blk_reg_map *c;
-       u32 val;
-       int rc;
-
-       if (!pp)
-               return -EINVAL;
-
-       c = &pp->hw;
-       rc = readl_poll_timeout(c->blk_addr + PP_LINE_COUNT,
-                       val, (val & 0xffff) >= 1, 10, timeout_us);
-
-       return rc;
-}
-
 static int dpu_hw_pp_enable_te(struct dpu_hw_pingpong *pp, bool enable)
 {
        struct dpu_hw_blk_reg_map *c;
@@ -262,7 +245,6 @@ static void _setup_pingpong_ops(struct dpu_hw_pingpong *c,
        c->ops.get_vsync_info = dpu_hw_pp_get_vsync_info;
        c->ops.setup_autorefresh = dpu_hw_pp_setup_autorefresh_config;
        c->ops.get_autorefresh = dpu_hw_pp_get_autorefresh_config;
-       c->ops.poll_timeout_wr_ptr = dpu_hw_pp_poll_timeout_wr_ptr;
        c->ops.get_line_count = dpu_hw_pp_get_line_count;
        c->ops.setup_dsc = dpu_hw_pp_setup_dsc;
        c->ops.enable_dsc = dpu_hw_pp_dsc_enable;
index 51e9093..42af9e5 100644 (file)
@@ -108,12 +108,6 @@ struct dpu_hw_pingpong_ops {
                                u32 *frame_count);
 
        /**
-        * poll until write pointer transmission starts
-        * @Return: 0 on success, -ETIMEDOUT on timeout
-        */
-       int (*poll_timeout_wr_ptr)(struct dpu_hw_pingpong *pp, u32 timeout_us);
-
-       /**
         * Obtain current vertical line counter
         */
        u32 (*get_line_count)(struct dpu_hw_pingpong *pp);