]> asedeno.scripts.mit.edu Git - linux.git/commit
media: v4l: vsp1: Generalize detection of entity removal from DRM pipeline
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 26 Feb 2018 09:22:40 +0000 (04:22 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 12:03:26 +0000 (08:03 -0400)
commit1dd72ee923b7ed96abe15b2cb09aa5d85315871e
treee93b28c446064742a69514c6b0c569c5d2cb1f85
parentbc3c9c8802b8d87e46715f23f1b0d3588cd8c5c4
media: v4l: vsp1: Generalize detection of entity removal from DRM pipeline

When disabling a DRM plane, the corresponding RPF is only marked as
removed from the pipeline in the atomic update handler, with the actual
removal happening when configuring the pipeline at atomic commit time.
This is required as the RPF has to be disabled in the hardware, which
can't be done from the atomic update handler.

The current implementation is RPF-specific. Make it independent of the
entity type by using the entity's pipe pointer to mark removal from the
pipeline. This will allow using the mechanism to remove BRU instances.

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+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1_drm.c