diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-09-14 21:16:15 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-09-27 10:39:58 +0300 |
commit | 1cbdd6659b2ac70a1188dab9ea56d58dba71ee12 (patch) | |
tree | c8361b1189528ae7affe59f6adfcc55814207618 | |
parent | 9c5ab9574fa18d497abddca323e42ea9b00c6c15 (diff) | |
download | linux-1cbdd6659b2ac70a1188dab9ea56d58dba71ee12.tar.xz |
media: i2c: imx319: Drop check for reentrant .s_stream()
The subdev .s_stream() operation shall not be called to start streaming
on an already started subdev, or stop streaming on a stopped subdev.
Remove the check that guards against that condition.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | drivers/media/i2c/imx319.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/imx319.c b/drivers/media/i2c/imx319.c index 52ebb096e107..935bcbacd62e 100644 --- a/drivers/media/i2c/imx319.c +++ b/drivers/media/i2c/imx319.c @@ -2166,10 +2166,6 @@ static int imx319_set_stream(struct v4l2_subdev *sd, int enable) int ret = 0; mutex_lock(&imx319->mutex); - if (imx319->streaming == enable) { - mutex_unlock(&imx319->mutex); - return 0; - } if (enable) { ret = pm_runtime_resume_and_get(&client->dev); |