Re: [PATCH v3 2/4] drm/msm/dsi: add DSI version >= comparison helper
From: Konrad Dybcio
Date: Thu Mar 19 2026 - 08:08:50 EST
On 3/19/26 12:57 PM, Alexander Koskovich wrote:
> 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.
>
> Signed-off-by: Alexander Koskovich <akoskovich@xxxxx>
> ---
> drivers/gpu/drm/msm/dsi/dsi_host.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c
> index db6da99375a1..6fad9a612d4d 100644
> --- a/drivers/gpu/drm/msm/dsi/dsi_host.c
> +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
> @@ -782,13 +782,20 @@ static void dsi_ctrl_disable(struct msm_dsi_host *msm_host)
> dsi_write(msm_host, REG_DSI_CTRL, 0);
> }
>
> +static bool msm_dsi_host_version_ge(struct msm_dsi_host *msm_host,
I think that "geq" is more common/obvious, but anyway
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad