projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af63429
)
usb: musb: cppi41: do not call udelay()
author
Felipe Balbi
<balbi@ti.com>
Fri, 27 Feb 2015 19:22:27 +0000
(13:22 -0600)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 10 Mar 2015 20:33:32 +0000
(15:33 -0500)
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>
drivers/usb/musb/musb_cppi41.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/musb_cppi41.c
b/drivers/usb/musb/musb_cppi41.c
index
4407f30
..
9dc45a4
100644
(file)
--- 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,