From: Rafael J. Wysocki Date: Tue, 8 Feb 2011 22:25:48 +0000 (+0100) Subject: USB / Hub: Do not call device_set_wakeup_capable() under spinlock X-Git-Tag: v2.6.39-rc1~484^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4681b17154b3fd81f898802262985f662344e6ed;p=pandora-kernel.git USB / Hub: Do not call device_set_wakeup_capable() under spinlock A subsequent patch will modify device_set_wakeup_capable() in such a way that it will call functions which may sleep and therefore it shouldn't be called under spinlocks. In preparation to that, modify usb_set_device_state() to avoid calling device_set_wakeup_capable() under device_state_lock. Tested-by: Minchan Kim Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed