From: Neil Zhang Date: Tue, 10 Jul 2012 02:07:03 +0000 (+0800) Subject: usb: gadget: mv_udc: avoid sleeping on spinlock X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~141^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0344606bec0f3325ba9c1d4de74a5dd98911916d;p=pandora-kernel.git usb: gadget: mv_udc: avoid sleeping on spinlock build_dtd() can be called when hold a spinlock, but GFP_KERNEL may cause dma_pool_alloc() sleep, So we need use GFP_ATOMIC instead of GFP_KERNEL. But using GFP_ATOMIC may cause failure when allocating memory, add error handler to handle it. Signed-off-by: Alexey Khoroshilov Signed-off-by: Neil Zhang Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed