Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: i2c: imx258: 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>

authored by

Laurent Pinchart and committed by
Hans Verkuil
9c5ab957 fcf877f1

-4
-4
drivers/media/i2c/imx258.c
··· 1035 1035 int ret = 0; 1036 1036 1037 1037 mutex_lock(&imx258->mutex); 1038 - if (imx258->streaming == enable) { 1039 - mutex_unlock(&imx258->mutex); 1040 - return 0; 1041 - } 1042 1038 1043 1039 if (enable) { 1044 1040 ret = pm_runtime_resume_and_get(&client->dev);