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: Shubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Shubhrajyoti Datta
2015-08-10 08:37:32 +02:00
committed by Wolfram Sang
parent e6c9a037bc
commit b33aa25278
+1 -1
View File
@@ -524,7 +524,7 @@ static int xiic_busy(struct xiic_i2c *i2c)
*/
err = xiic_bus_busy(i2c);
while (err && tries--) {
mdelay(1);
msleep(1);
err = xiic_bus_busy(i2c);
}