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
38b41e5417
commit
0df0a105d1
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)
|
||||
{
|
||||
ret = priv->error;
|
||||
wostop = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue