mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
drm/rockchip: Return error code for errors
Instead of silently disabling small planes, refuse to create them at all. Signed-off-by: Daniel Stone <daniels@collabora.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20251015110042.41273-4-daniels@collabora.com
This commit is contained in:
committed by
Heiko Stuebner
parent
4bfaa85bb5
commit
70e3f77cb5
@@ -1035,8 +1035,7 @@ static int vop2_plane_atomic_check(struct drm_plane *plane,
|
||||
drm_dbg_kms(vop2->drm, "Invalid size: %dx%d->%dx%d, min size is 4x4\n",
|
||||
drm_rect_width(src) >> 16, drm_rect_height(src) >> 16,
|
||||
drm_rect_width(dest), drm_rect_height(dest));
|
||||
pstate->visible = false;
|
||||
return 0;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (drm_rect_width(src) >> 16 > vop2_data->max_input.width ||
|
||||
|
||||
Reference in New Issue
Block a user