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 18, 2024
1 parent e6ef076 commit a406b4c
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 @@ -1485,6 +1485,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 a406b4c

Please sign in to comment.