From ddf35849ee30ec7eabde0906af441a17a5a86856 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:10:55 +0900 Subject: [PATCH] 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. --- arch/arm/src/cxd56xx/cxd56_i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/cxd56xx/cxd56_i2c.c b/arch/arm/src/cxd56xx/cxd56_i2c.c index 4d618e9ee89ec..582a0643bddf5 100644 --- a/arch/arm/src/cxd56xx/cxd56_i2c.c +++ b/arch/arm/src/cxd56xx/cxd56_i2c.c @@ -667,6 +667,7 @@ static int cxd56_i2c_transfer(struct i2c_master_s *dev, if (priv->error != OK) { ret = priv->error; + wostop = 0; break; }