aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-02-27 14:22:27 -0500
committerFelipe Balbi <balbi@ti.com>2015-03-10 16:33:32 -0400
commit043f5b75dd2b1fbd45d5f367d50e5ae5b4afa955 (patch)
tree31183d48e89d5b08d835f643b9d322e21046023c /drivers/usb/musb
parentaf63429cf046210d7313805b579dd779d10ad1c0 (diff)
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 <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_cppi41.c2
1 files changed, 1 insertions, 1 deletions
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)
287 wait--; 287 wait--;
288 if (!wait) 288 if (!wait)
289 break; 289 break;
290 udelay(1); 290 cpu_relax();
291 } while (1); 291 } while (1);
292 } 292 }
293 list_add_tail(&cppi41_channel->tx_check, 293 list_add_tail(&cppi41_channel->tx_check,