Skip to content

Commit

Permalink
arch/arm64/src/imx9/imx9_lpi2c.c: Clear NACK properly on last RX byte
Browse files Browse the repository at this point in the history
Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Sep 19, 2024
1 parent 26d7c33 commit aea511f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/src/imx9/imx9_lpi2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,7 @@ static int imx9_lpi2c_isr_process(struct imx9_lpi2c_priv_s *priv)
if ((status & LPI2C_MSR_NDF) != 0 && (priv->flags & I2C_M_READ) != 0 &&
priv->dcnt == 1)
{
imx9_lpi2c_putreg(priv, IMX9_LPI2C_MSR_OFFSET, LPI2C_MSR_NDF);
status &= ~LPI2C_MSR_NDF;
}

Expand Down

0 comments on commit aea511f

Please sign in to comment.