arch: cxd56xx: Fix not restart after TX error
Fix a bug that I2C driver can not transfer after TX abort error. It caused by remaining NO_STOP flag status.
This commit is contained in:
parent
6825f66fd6
commit
957516105f
1 changed files with 1 additions and 0 deletions
|
@ -667,6 +667,7 @@ static int cxd56_i2c_transfer(struct i2c_master_s *dev,
|
||||||
if (priv->error != OK)
|
if (priv->error != OK)
|
||||||
{
|
{
|
||||||
ret = priv->error;
|
ret = priv->error;
|
||||||
|
wostop = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue