From: Pavankumar Kondeti Date: Tue, 7 Dec 2010 12:24:00 +0000 (+0530) Subject: USB: gadget: Fix "scheduling while atomic" bugs in ci13xxx_udc X-Git-Tag: v2.6.38-rc1~465^2~11^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a91efa2f951d790969dec96fb675ca7869eca83;p=pandora-kernel.git USB: gadget: Fix "scheduling while atomic" bugs in ci13xxx_udc dma_pool_alloc() require sleeping context when called with GFP_KERNEL argument. Hence release the spin lock before calling dma_pool_alloc(). usb_ep_alloc_request can also be called with non-atomic GFP flags. Hence get rid off spin lock while allocation request memory. Use GFP_ATOMIC flag for allocating request for ep0 in interrupt handler. Signed-off-by: Pavankumar Kondeti Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed