drm/rcar-du: Update plane pitch in .mode_set_base() operation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 13 Nov 2013 13:26:01 +0000 (14:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:50:23 +0000 (13:50 -0800)
commit1ace73498ed6eba21c608351d6b4f35de1d5de7d
tree88392c1151c2436f56de3b3d6ab564c67f393cf7
parentda31f98cc7384900b1cf429fb5997ff1dee0f0df
drm/rcar-du: Update plane pitch in .mode_set_base() operation

commit eb86301f293da3c362db729a9f40ddb25755902b upstream.

When setting a new frame buffer with the mode set base operation the
pitch value might change. Set the hardware plane pitch register at the
same time as the plane base address in the rcar_du_plane_update_base()
function to make sure the pitch value always matches the frame buffer.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/rcar-du/rcar_du_crtc.c
drivers/gpu/drm/rcar-du/rcar_du_plane.c