feat(esp32s3_i2c): do not destuck every transaction

It looks like we do not need to send the 9 clock ticks whenever we reset
the FSM. We are already doing this in i2c_reset function if necessary.

This makes the i2c transfers much faster, for example the i2c(-tool) dev
scan feature.
This commit is contained in:
Marco Casaroli 2023-10-08 16:05:45 +00:00 committed by Petro Karashchenko
parent 141dc1e3e7
commit f25a382c1a

View File

@ -820,8 +820,6 @@ static void i2c_reset_fsmc(struct esp32s3_i2c_priv_s *priv)
/* Reset FSM machine */ /* Reset FSM machine */
modifyreg32(I2C_CTR_REG(priv->id), 0, I2C_FSM_RST); modifyreg32(I2C_CTR_REG(priv->id), 0, I2C_FSM_RST);
i2c_clear_bus(priv);
} }
/**************************************************************************** /****************************************************************************