Re: [RFT PATCH v3 4/6] uvcvideo: queue: Simplify spin-lock usage

2018-01-17 Thread Philipp Zabel
On Tue, 2018-01-16 at 19:23 +0200, Laurent Pinchart wrote: > Hi Kieran, > > Thank you for the patch. > > On Friday, 12 January 2018 11:19:26 EET Kieran Bingham wrote: > > Both uvc_start_streaming(), and uvc_stop_streaming() are called from > > userspace context. As such, they do not need to save

Re: [RFT PATCH v3 4/6] uvcvideo: queue: Simplify spin-lock usage

2018-01-16 Thread Laurent Pinchart
Hi Kieran, Thank you for the patch. On Friday, 12 January 2018 11:19:26 EET Kieran Bingham wrote: > Both uvc_start_streaming(), and uvc_stop_streaming() are called from > userspace context. As such, they do not need to save the IRQ state, and > can use spin_lock_irq() and spin_unlock_irq()

[RFT PATCH v3 4/6] uvcvideo: queue: Simplify spin-lock usage

2018-01-12 Thread Kieran Bingham
Both uvc_start_streaming(), and uvc_stop_streaming() are called from userspace context. As such, they do not need to save the IRQ state, and can use spin_lock_irq() and spin_unlock_irq() respectively. Signed-off-by: Kieran Bingham ---