Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/rockchip: vop: report error when check resource error

The user would be confused while facing a error commit without
any error report.

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Reviewed-by: Sandy huang <sandy.huang@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1501494596-7090-1-git-send-email-mark.yao@rock-chips.com

Mark yao 80c471ea 79a0b149

+3 -1
+3 -1
drivers/gpu/drm/rockchip/rockchip_drm_vop.c
··· 679 679 * Src.x1 can be odd when do clip, but yuv plane start point 680 680 * need align with 2 pixel. 681 681 */ 682 - if (is_yuv_support(fb->format->format) && ((state->src.x1 >> 16) % 2)) 682 + if (is_yuv_support(fb->format->format) && ((state->src.x1 >> 16) % 2)) { 683 + DRM_ERROR("Invalid Source: Yuv format not support odd xpos\n"); 683 684 return -EINVAL; 685 + } 684 686 685 687 return 0; 686 688 }