From: Bhupesh Sharma Date: Fri, 23 Mar 2012 16:53:13 +0000 (+0530) Subject: usb: gadget: uvc: Remove non-required locking from 'uvc_queue_next_buffer' routine X-Git-Tag: v3.4-rc4~14^2~14^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6190c79df861d2c78a7448fe6d4260e5fa53b9b9;p=pandora-kernel.git usb: gadget: uvc: Remove non-required locking from 'uvc_queue_next_buffer' routine This patch removes the non-required spinlock acquire/release calls on 'queue->irqlock' from 'uvc_queue_next_buffer' routine. This routine is called from 'video->encode' function (which translates to either 'uvc_video_encode_bulk' or 'uvc_video_encode_isoc') in 'uvc_video.c'. As, the 'video->encode' routines are called with 'queue->irqlock' already held, so acquiring a 'queue->irqlock' again in 'uvc_queue_next_buffer' routine causes a spin lock recursion. Signed-off-by: Bhupesh Sharma Acked-by: Laurent Pinchart Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed