Skip to content
Snippets Groups Projects
Commit b33aa252 authored by Shubhrajyoti Datta's avatar Shubhrajyoti Datta Committed by Wolfram Sang
Browse files

i2c: xiic: Remove busy loop while waiting for bus busy


Remove the busy loop  while waiting for bus busy.
Instead let the processor sleep.

Signed-off-by: default avatarShubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent e6c9a037
No related branches found
No related tags found
No related merge requests found
...@@ -524,7 +524,7 @@ static int xiic_busy(struct xiic_i2c *i2c) ...@@ -524,7 +524,7 @@ static int xiic_busy(struct xiic_i2c *i2c)
*/ */
err = xiic_bus_busy(i2c); err = xiic_bus_busy(i2c);
while (err && tries--) { while (err && tries--) {
mdelay(1); msleep(1);
err = xiic_bus_busy(i2c); err = xiic_bus_busy(i2c);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment