[PATCH v12 75/86] media: ipu6: Add lockdep checks for CSI-2 streaming enable and disable

Sakari Ailus
2026-04-09T20:15:14Z

The callbacks for enabling and disabling streams access data serialised
using the isys stream_mutex; add lockdep checks for this.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c b/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
index 8deafe38be5d..f37e25063d6d 100644
--- a/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
+++ b/drivers/media/pci/intel/ipu6/ipu6-isys-csi2.c
@@ -399,6 +399,8 @@ static int ipu6_isys_csi2_enable_streams(struct v4l2_subdev *sd,
u64 sink_streams;
int ret;

+ lockdep_assert_held(&csi2->isys->stream_mutex);
+
list_add(&av->csi2_entry, &csi2->av_head);

if (!ipu6_isys_csi2_streaming_change(asd, state, pad, true))
@@ -457,6 +459,8 @@ static int ipu6_isys_csi2_disable_streams(struct v4l2_subdev *sd,
struct v4l2_subdev *remote_sd;
u64 sink_streams;

+ lockdep_assert_held(&csi2->isys->stream_mutex);
+
if (!ipu6_isys_csi2_streaming_change(asd, state, pad, false))
goto out_del_csi2_entry;

--
2.47.3