]> git.baikalelectronics.ru Git - kernel.git/commit
media: rcar-vin: Disallow unbinding and binding of individual VINs
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sun, 28 Nov 2021 13:24:47 +0000 (14:24 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Dec 2021 10:29:55 +0000 (11:29 +0100)
commita849dee39deccda885c748c7ebe234bc7412261e
tree37efe80e891cd6b20a5eb6f01f1e54f1aa05df57
parent761b0f32cff6a5377de0901f800013ad9cfdf1a9
media: rcar-vin: Disallow unbinding and binding of individual VINs

The VIN driver have an internal concept of capture groups that covers
multiple instances of the driver. This is handled using the shared media
graph and a single notifier shared between all VIN instances.

This design do not work well if an individual VIN where to be unbound on
its own. The design could be improved up on to allow for this but would
require large changes in the v4l2-async framework. To avoid the
situation suppress the bind and unbind nodes in sysfs.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c