]> www.infradead.org Git - linux.git/commit
media: renesas: vsp1: Implement .link_validate() for video devices
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 18 Jun 2024 18:46:44 +0000 (21:46 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 26 Aug 2024 13:36:14 +0000 (16:36 +0300)
commita3d44f011c6b7a87c9ad0d5be2f5fa092fa419bf
tree52e402204349f74d30726ce03fb9ea40971152bb
parent5fd3e2412ade67ea20d855f0aea821c650d27559
media: renesas: vsp1: Implement .link_validate() for video devices

The v4l2_subdev_link_validate() helper prints a warning if the
.link_validate() operation is not implemented for video devices
connected to the subdevs. Implement the operation to silence the
warning.

Ideally validation of the link between the video device and the subdev
should be implemented in that operation. That would however break
userspace that does not configure formats on all video devices before
starting streaming. While this mode of operation may not be considered
valid by the V4L2 API specification (interpretation differ), it is
nonetheless supported by the vsp1 driver at the moment and used by at
least the vsp1 unit test suite, and possibly other userspace
applications. Removing it would be a regression.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/media/platform/renesas/vsp1/vsp1_video.c