From: Felipe Balbi Date: Fri, 27 Feb 2015 19:22:27 +0000 (-0600) Subject: usb: musb: cppi41: do not call udelay() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=043f5b75dd2b1fbd45d5f367d50e5ae5b4afa955;p=linux-beck.git usb: musb: cppi41: do not call udelay() according to comment in code, HS completion will happen pretty fast, instead of using udelay(), let's just busy loop and drop a cpu_relax() where udelay() was. Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb_cppi41.c index 4407f30d0b86..9dc45a4a9fa8 100644 --- a/drivers/usb/musb/musb_cppi41.c +++ b/drivers/usb/musb/musb_cppi41.c @@ -287,7 +287,7 @@ static void cppi41_dma_callback(void *private_data) wait--; if (!wait) break; - udelay(1); + cpu_relax(); } while (1); } list_add_tail(&cppi41_channel->tx_check,