[PATCH v5 4/5] media: platform: mediatek: isp_30: add mediatek ISP3.0 camsv
Markus Elfring
Markus.Elfring at web.de
Tue Jul 30 00:25:45 PDT 2024
…
> +++ b/drivers/media/platform/mediatek/isp/isp_30/camsv/mtk_camsv30_hw.c
> @@ -0,0 +1,413 @@
…
> +static int mtk_camsv30_runtime_suspend(struct device *dev)
> +{
…
> + if (vb2_is_streaming(vbq)) {
> + mutex_lock(&cam_dev->op_lock);
> + v4l2_subdev_call(&cam_dev->subdev, video, s_stream, 0);
> + mutex_unlock(&cam_dev->op_lock);
> + }
…
Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&cam_dev->op_lock);”?
https://elixir.bootlin.com/linux/v6.10.2/source/include/linux/mutex.h#L196
Regards,
Markus
More information about the linux-arm-kernel
mailing list