OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.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
|
history
diff --git
a/drivers/i2c/busses/i2c-xiic.c
b/drivers/i2c/busses/i2c-xiic.c
index
5d133d4
..
41da902
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);
}