media: v4l: vsp1: Fix display stalls when requesting too many inputs
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sun, 3 Dec 2017 10:06:57 +0000 (05:06 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:57 +0000 (16:17 +0200)
commit93c72937a26bf899b10b2af6193f89f9c113577c
treeee8f2730f052a28154051272d531f4d46b4359b3
parentd600eadf7d80edf8575462d8a0c117adbbceba52
media: v4l: vsp1: Fix display stalls when requesting too many inputs

[ Upstream commit 5e3e4cb5e24b92773b194aa90066170b12133bc6 ]

Make sure we don't accept more inputs than the hardware can handle. This
is a temporary fix to avoid display stall, we need to instead allocate
the BRU or BRS to display pipelines dynamically based on the number of
planes they each use.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/vsp1/vsp1_drm.c