linux/drivers/staging/media
Hans de Goede 2468083f79 media: atomisp: Fix locking around asd->streaming read/write
For reading / writing the asd->streaming enum the following rules
should be followed:

1. Writers of streaming must hold both isp->mutex and isp->lock.
2. Readers of streaming need to hold only one of the two locks.

Not all writers where properly taking both locks this fixes this.

In the case of the readers, many readers depend on their caller
to hold isp->mutex, add asserts for this

And in the case of atomisp_css_get_dis_stat() it is called with
isp->mutex held, so there is no need to take the spinlock just
for reading the streaming value.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-09-24 10:05:14 +02:00
..
atomisp media: atomisp: Fix locking around asd->streaming read/write 2022-09-24 10:05:14 +02:00
deprecated media: tm6000: Fix unused value in vidioc_try_fmt_vid_cap() 2022-08-30 07:30:20 +02:00
imx media: mc: convert pipeline funcs to take media_pad 2022-09-24 09:22:30 +02:00
ipu3 media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
max96712 media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
meson/vdec media: meson: vdec: fix possible refcount leak in vdec_probe() 2022-09-24 08:55:43 +02:00
omap4iss media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
rkvdec media: rkvdec: Use vb2_find_buffer 2022-07-17 11:13:41 +01:00
sunxi media: cedrus: Fix endless loop in cedrus_h265_skip_bits() 2022-08-30 14:48:45 +02:00
tegra-video media: drivers: use video device pipeline start/stop 2022-09-24 09:14:20 +02:00
Kconfig media: destage Hantro VPU driver 2022-08-31 10:23:50 +02:00
Makefile media: destage Hantro VPU driver 2022-08-31 10:23:50 +02:00