diff options
Diffstat (limited to 'drivers/i2c/mxc_i2c.c')
| -rw-r--r-- | drivers/i2c/mxc_i2c.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index aa13af3ae10..f80ff5383bc 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -199,7 +199,7 @@ static int wait_for_sr_state(struct mxc_i2c_bus *i2c_bus, unsigned state)  		}  		if ((sr & (state >> 8)) == (unsigned char)state)  			return sr; -		WATCHDOG_RESET(); +		schedule();  		elapsed = get_timer(start_time);  		if (elapsed > (CONFIG_SYS_HZ / 10))	/* .1 seconds */  			break; @@ -447,7 +447,7 @@ int i2c_idle_bus(struct mxc_i2c_bus *i2c_bus)  		sda = dm_gpio_get_value(sda_gpio);  		if ((sda & scl) == 1)  			break; -		WATCHDOG_RESET(); +		schedule();  		elapsed = get_timer(start_time);  		if (elapsed > (CONFIG_SYS_HZ / 5)) {	/* .2 seconds */  			ret = -EBUSY; | 
