Skip to content

Commit b14257a

Browse files
Niklas SöderlundHans Verkuil
authored andcommitted
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>
1 parent 65e6a27 commit b14257a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/media/platform/renesas/rcar-isp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ static void risp_remove(struct platform_device *pdev)
518518
static struct platform_driver rcar_isp_driver = {
519519
.driver = {
520520
.name = "rcar-isp",
521+
.suppress_bind_attrs = true,
521522
.of_match_table = risp_of_id_table,
522523
},
523524
.probe = risp_probe,

0 commit comments

Comments
 (0)