diff options
author | Felipe Balbi <balbi@ti.com> | 2015-02-27 22:22:27 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-10 23:33:32 +0300 |
commit | 043f5b75dd2b1fbd45d5f367d50e5ae5b4afa955 (patch) | |
tree | 31183d48e89d5b08d835f643b9d322e21046023c | |
parent | af63429cf046210d7313805b579dd779d10ad1c0 (diff) | |
download | linux-043f5b75dd2b1fbd45d5f367d50e5ae5b4afa955.tar.xz |
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>
-rw-r--r-- | drivers/usb/musb/musb_cppi41.c | 2 |
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, |