]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Fix hardware plane allocation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 25 Feb 2015 16:38:25 +0000 (18:38 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 3 Mar 2015 14:16:09 +0000 (16:16 +0200)
commit7e67e103fc4fc3e62ec8563e6a6f1d610f13cbe3
tree6469ab279024ad8b0c4d1f355337025d22c9458e
parent27bd7e74b36dc6b92319ba0a12bc0be68cf9220f
drm: rcar-du: Fix hardware plane allocation

The hardware plane allocator loops over all planes to find free
candidates. However, instead of looping over the number of hardware
planes, it loops over the number of software planes, which happens to be
larger by one unit. This has no effect in practise as the extra plane is
always cleared in the mask of free planes, but it should still be fixed
for correctness.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_plane.c