]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm: verisilicon: call atomic helper's plane state check even if no CRTC
authorIcenowy Zheng <zhengxingda@iscas.ac.cn>
Tue, 31 Mar 2026 06:01:25 +0000 (14:01 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 4 May 2026 11:30:59 +0000 (13:30 +0200)
commiteae3903e33797a28d0d37e693d4314d58338918e
tree93c02d98837156ac3d384a0ec59cb601b7844362
parent1a2e37548077640262489c4e96dc8df877452e20
drm: verisilicon: call atomic helper's plane state check even if no CRTC

The `drm_atomic_helper_check_plane_state()` helper function needs to be
called even if the plane is bound to no CRTCs.

Remove the early return in the primary plane's atomic_check, and use
NULL for crtc_state in this situation.

Fixes: dbf21777caa8 ("drm: verisilicon: add a driver for Verisilicon display controllers")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260331060126.1291966-4-zhengxingda@iscas.ac.cn
drivers/gpu/drm/verisilicon/vs_primary_plane.c