Skip to content

Commit

Permalink
feat(esp32s3_i2c): do not destuck every transaction
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
casaroli committed Oct 8, 2023
1 parent b1096a6 commit 02c700b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/xtensa/src/esp32s3/esp32s3_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,6 @@ static void i2c_reset_fsmc(struct esp32s3_i2c_priv_s *priv)
/* Reset FSM machine */

modifyreg32(I2C_CTR_REG(priv->id), 0, I2C_FSM_RST);

i2c_clear_bus(priv);
}

/****************************************************************************
Expand Down

0 comments on commit 02c700b

Please sign in to comment.