Re: [PATCH v4 1/3] drm/rockchip: dsi: Add maximum per lane bit rate calculation
From: Heiko Stuebner
Date: Sat Sep 12 2026 - 08:48:31 EST
Am Mittwoch, 12. August 2026, 09:30:00 Mitteleuropäische Sommerzeit schrieb Chaoyi Chen:
> From: Chaoyi Chen <chaoyi.chen@xxxxxxxxxxxxxx>
>
> Different chips have varying support for the maximum bit rate per lane.
>
> Add calculation for the maximum per lane bit rate for various chip
> platforms.
>
> Signed-off-by: Chaoyi Chen <chaoyi.chen@xxxxxxxxxxxxxx>
[...]
> @@ -573,6 +574,7 @@ dw_mipi_dsi_get_lane_mbps(void *priv_data, const struct drm_display_mode *mode,
> unsigned long _fbdiv, best_fbdiv;
> unsigned long min_delta = ULONG_MAX;
>
> + max_mbps = dsi->cdata->max_bit_rate_per_lane / USEC_PER_SEC;
As the value is called max_bit_rate_per_lane, I guess Sashiko
is correct in that the max_mbps check should use "<=" ?
Heiko