Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/dsi: add DSI version >= comparison helper

Add a helper for checking if the DSI hardware version is greater
than or equal to a given version, for use in a future change.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
Patchwork: https://patchwork.freedesktop.org/patch/713719/
Link: https://lore.kernel.org/r/20260324-dsi-rgb101010-support-v5-4-ff6afc904115@pm.me
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

authored by

Alexander Koskovich and committed by
Dmitry Baryshkov
a65c4d30 913a709d

+10 -2
+10 -2
drivers/gpu/drm/msm/dsi/dsi_host.c
··· 783 783 dsi_write(msm_host, REG_DSI_CTRL, 0); 784 784 } 785 785 786 + static bool msm_dsi_host_version_geq(struct msm_dsi_host *msm_host, 787 + u32 major, u32 minor) 788 + { 789 + return msm_host->cfg_hnd->major > major || 790 + (msm_host->cfg_hnd->major == major && 791 + msm_host->cfg_hnd->minor >= minor); 792 + } 793 + 786 794 bool msm_dsi_host_is_wide_bus_enabled(struct mipi_dsi_host *host) 787 795 { 788 796 struct msm_dsi_host *msm_host = to_msm_dsi_host(host); 789 797 790 798 return msm_host->dsc && 791 - (msm_host->cfg_hnd->major == MSM_DSI_VER_MAJOR_6G && 792 - msm_host->cfg_hnd->minor >= MSM_DSI_6G_VER_MINOR_V2_5_0); 799 + msm_dsi_host_version_geq(msm_host, MSM_DSI_VER_MAJOR_6G, 800 + MSM_DSI_6G_VER_MINOR_V2_5_0); 793 801 } 794 802 795 803 static void dsi_ctrl_enable(struct msm_dsi_host *msm_host,