]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: cdns-dsi: Use video mode and clean up cdns_dsi_mode2cfg()
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 23 Jul 2025 10:05:18 +0000 (13:05 +0300)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 13 Aug 2025 07:20:38 +0000 (10:20 +0300)
commitce4bc5ca7c1de554c3d8c95aa2dddce6cbcef14e
tree70c0e13c04aeaf99a3c85660a7e329930a8ee162
parenteea4f89b6461294ed6bea1d3285bb3f79c09a041
drm/bridge: cdns-dsi: Use video mode and clean up cdns_dsi_mode2cfg()

The driver does all the calculations and programming with video timings
(hftp, hbp, etc.) instead of the modeline values (hsync_start, ...).
Thus it makes sense to use struct videomode instead of struct
drm_display_mode internally.

Switch to videomode and do some cleanups in cdns_dsi_mode2cfg() along
the way.

Tested-by: Parth Pancholi <parth.pancholi@toradex.com>
Reviewed-by: Aradhya Bhatia <aradhya.bhatia@linux.dev>
Tested-by: Jayesh Choudhary <j-choudhary@ti.com>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
Link: https://lore.kernel.org/r/20250723-cdns-dsi-impro-v5-12-e61cc06074c2@ideasonboard.com
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c