Skip to contentSkip to conversation

staging/most: video: add lock documentation comments

PATCH In review Shivani Patel 2 participants 2 messages Nov 14 – Nov 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/most: video: add lock documentation comments

---
 drivers/staging/most/video/video.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/staging/most/video/video.c +9 -0
index 3a0445ff6..12ab06919 100644
@@ -33,6 +33,10 @@ struct most_video_dev {
 	bool mute;
 
 	struct list_head pending_mbos;
+	/*
+	 * Protects the @pending_mbos list and the @mute flag while accessing
+	 * the device from interrupt context and user‑space.
+	 */
 	spinlock_t list_lock;
 
 	struct v4l2_device v4l2_dev;
@@ -40,6 +44,11 @@ struct most_video_dev {
 	struct video_device *vdev;
 	unsigned int ctrl_input;
 
+	/*
+	 * Serialises configuration operations (e.g. start/stop, mute) that are
+	 * performed from process context. This mutex is taken in the open and
+	 * close paths as well as in any ioctls that modify the device state.
+	 */
 	struct mutex lock;
 
 	wait_queue_head_t wait_data;
Signature · 1 line
2.50.1 (Apple Git-155)
#1 lore raw

On Sat, Nov 14, 2026 at 01:16:58PM +0530, Shivani Patel wrote:

Please, get familiar first on the process and required formatting. Documentation/process/ is a good start.

Signature · 2 lines
With Best Regards,
Andy Shevchenko