]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/rockchip: vop2: Add mode valid callback for crtc
authorAndy Yan <andy.yan@rock-chips.com>
Sat, 17 Jan 2026 02:07:30 +0000 (10:07 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 20 Jan 2026 10:09:46 +0000 (11:09 +0100)
commit88b14b9279d824dd84bdda20c7b2fdb4b285dd25
tree30af1cc58b19ce81188506b0cba731985be9ba58
parentaa156ad92523b21b12bfa5bb261d6affb4b1597f
drm/rockchip: vop2: Add mode valid callback for crtc

The different Video Ports support different maximum resolutions.
Reject resolutions that are not supported by a specific VP.

Only the output width is checked because the hardware itself does
not have a hard output height limit.

Filter the mode that can't output by the VP/crtc.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com> # Sige5
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260117020738.294825-1-andyshrk@163.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c