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

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>

authored by

Laurent Pinchart and committed by
Hans Verkuil
1cbdd665 9c5ab957

-4
-4
drivers/media/i2c/imx319.c
··· 2166 2166 int ret = 0; 2167 2167 2168 2168 mutex_lock(&imx319->mutex); 2169 - if (imx319->streaming == enable) { 2170 - mutex_unlock(&imx319->mutex); 2171 - return 0; 2172 - } 2173 2169 2174 2170 if (enable) { 2175 2171 ret = pm_runtime_resume_and_get(&client->dev);