projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c9a03
)
i2c: xiic: Remove busy loop while waiting for bus busy
author
Shubhrajyoti Datta
<shubhraj@xilinx.com>
Wed, 17 Jun 2015 15:18:15 +0000
(20:48 +0530)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:32 +0000
(08:37 +0200)
Remove the busy loop while waiting for bus busy.
Instead let the processor sleep.
Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xiic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-xiic.c
b/drivers/i2c/busses/i2c-xiic.c
index 5d133d487ec02cf6c353ce8e3d2e9b4355fa76ef..41da9028b6ea8e247383a3e8af4938f1924b9865 100644
(file)
--- a/
drivers/i2c/busses/i2c-xiic.c
+++ b/
drivers/i2c/busses/i2c-xiic.c
@@
-524,7
+524,7
@@
static int xiic_busy(struct xiic_i2c *i2c)
*/
err = xiic_bus_busy(i2c);
while (err && tries--) {
- m
delay
(1);
+ m
sleep
(1);
err = xiic_bus_busy(i2c);
}