mirror of https://gitee.com/openkylin/linux.git
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:
parent
e6c9a037bc
commit
b33aa25278
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue