Skip to content

Commit 2f69e54

Browse files
lumagAbhinav Kumar
authored andcommitted
drm/msm/dpu: skip watchdog timer programming through TOP on >= SM8450
The SM8450 and later chips have DPU_MDP_PERIPH_0_REMOVED feature bit set, which means that those platforms have dropped some of the registers, including the WD TIMER-related ones. Stop providing the callback to program WD timer on those platforms. Fixes: 100d7ef ("drm/msm/dpu: add support for SM8450") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/628874/ Link: https://lore.kernel.org/r/20241214-dpu-drop-features-v1-1-988f0662cb7e@linaro.org Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
1 parent 669c285 commit 2f69e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops,
272272

273273
if (cap & BIT(DPU_MDP_VSYNC_SEL))
274274
ops->setup_vsync_source = dpu_hw_setup_vsync_sel;
275-
else
275+
else if (!(cap & BIT(DPU_MDP_PERIPH_0_REMOVED)))
276276
ops->setup_vsync_source = dpu_hw_setup_wd_timer;
277277

278278
ops->get_safe_status = dpu_hw_get_safe_status;

0 commit comments

Comments
 (0)