]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/dpu: pull the is_cmd_mode out of _dpu_encoder_update_vsync_source()
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 13 Jun 2024 17:05:07 +0000 (20:05 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 24 Jun 2024 16:41:05 +0000 (19:41 +0300)
commitceb5d43e068376a7751565ce8126fb4ee4360240
tree9c7985c564822279435b3f62f07d357090aea888
parent36aa1f2bef25719d9567215291832fa09df0eabe
drm/msm/dpu: pull the is_cmd_mode out of _dpu_encoder_update_vsync_source()

Setting vsync source makes sense only for DSI CMD panels. Pull the
is_cmd_mode condition out of the function into the calling code, so that
it becomes more explicit.

Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Patchwork: https://patchwork.freedesktop.org/patch/598736/
Link: https://lore.kernel.org/r/20240613-dpu-handle-te-signal-v2-4-67a0116b5366@linaro.org
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c