]> git.baikalelectronics.ru Git - kernel.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)
commit7b99342d76fd45de1b8d3f27994001743f2f8f36
treee93b28c446064742a69514c6b0c569c5d2cb1f85
parent76ec661ff1f885aed2b845b30ebca53b0e53aaaf
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