Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}