[PATCH v4 1/3] drm/rockchip: dsi: Add maximum per lane bit rate calculation

Heiko Stuebner heiko at sntech.de
Sat Sep 12 05:32:56 PDT 2026


Am Mittwoch, 12. August 2026, 09:30:00 Mitteleuropäische Sommerzeit schrieb Chaoyi Chen:
> From: Chaoyi Chen <chaoyi.chen at rock-chips.com>
> 
> 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 at rock-chips.com>

[...]

> @@ -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





More information about the linux-arm-kernel mailing list