media: rcar-isp: Disallow unbind of devices
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 31 Jan 2024 18:04:52 +0000 (19:04 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Mar 2024 15:35:13 +0000 (16:35 +0100)
commitb14257abe7057def6127f6fb2f14f9adc8acabdb
treefb835e3f328a4c5a07a8ef2480f177e5b6f2a05e
parent65e6a2773d655172143cc0b927cdc89549842895
media: rcar-isp: Disallow unbind of devices

It is not safe to unbind and then rebind a subdevice in the rcar-vin
pipeline. Depending on what subdevice and in what order a device is
rebound the rcar-vin driver can misbehave.

Until this can be solved suppress the files in sysfs which allows for
this. This is in line with what is done for other subdevices exclusively
use with the rcar-vin pipeline, e.g. rcar-csi2.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/renesas/rcar-isp.c