瀏覽代碼

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>
Shubhrajyoti Datta 10 年之前
父節點
當前提交
b33aa25278
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/i2c/busses/i2c-xiic.c

+ 1 - 1
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--) {
-		mdelay(1);
+		msleep(1);
 		err = xiic_bus_busy(i2c);
 	}