From: Yoshihiro Shimoda Date: Mon, 16 Mar 2015 07:36:48 +0000 (+0900) Subject: usb: renesas_usbhs: fix spinlock suspected in a gadget complete function X-Git-Tag: omap-for-v4.1/fixes-rc1~167^2~55^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00f30d29b497577954b20237b405e9d22b5286c2;p=pandora-kernel.git usb: renesas_usbhs: fix spinlock suspected in a gadget complete function According to the gadget.h, a "complete" function will always be called with interrupts disabled. However, sometimes usbhsg_queue_pop() function is called with interrupts enabled. So, this function should be held by usbhs_lock() to disable interruption. Also, this driver has to call spin_unlock() to avoid spinlock recursion by this driver before calling usb_gadget_giveback_request(). Otherwise, there is possible to cause a spinlock suspected in a gadget complete function. Signed-off-by: Yoshihiro Shimoda Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed