]> git.baikalelectronics.ru Git - kernel.git/commit
drm: hdlcd: Fix the calculation of the scanout start address
authorLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 8 Mar 2017 16:10:19 +0000 (16:10 +0000)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 27 Mar 2017 13:55:58 +0000 (14:55 +0100)
commitb2cc4c601dcf77c21b283c847796a54ff98d0bfb
tree6f5bfd4ce401c28778e605bda938559fedb1c66c
parent04db378bc38419431c40af65242beb366dba35ea
drm: hdlcd: Fix the calculation of the scanout start address

The calculation of the framebuffer's start address was wrongly using
the CRTC's x and y position rather than the one of the source
framebuffer. To fix that we need to update the plane_check code to
call drm_plane_helper_check_state() to clip the src and dst coordinates.
While there so some minor cleanup of redundant freeing of
devm_alloc-ated memory.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_crtc.c