summaryrefslogtreecommitdiff
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-02-27 13:22:27 -0600
committerFelipe Balbi <balbi@ti.com>2015-03-10 15:33:32 -0500
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)
wait--;
if (!wait)
break;
- udelay(1);
+ cpu_relax();
} while (1);
}
list_add_tail(&cppi41_channel->tx_check,