mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
drm/rockchip: vop2: not to register crtc for inactive video port
Make sure that the vp to be registered has at least
one connector, otherwise it will be as an inactive vp.
Fixes: 6092eb96b6 ("drm/rockchip: vop2: add possible_vp_mask to calculate the exact possible_crtcs")
Change-Id: Ibc078d9f50e47877e4296c2e570721a6f69c9058
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
@@ -12580,6 +12580,12 @@ static int vop2_create_crtc(struct vop2 *vop2, uint8_t enabled_vp_mask)
|
||||
primary = NULL;
|
||||
cursor = NULL;
|
||||
|
||||
/*
|
||||
* make sure that the vp to be registered has at least one connector.
|
||||
*/
|
||||
if (!(enabled_vp_mask & BIT(vp->id)))
|
||||
continue;
|
||||
|
||||
/*
|
||||
* we assume a vp with a zero plane_mask(set from dts or bootloader)
|
||||
* as unused.
|
||||
|
||||
Reference in New Issue
Block a user