Skip to content

Commit fef8526

Browse files
committed
Merge tag 'i2c-for-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fix from Wolfram Sang: "A bugfix for host drivers" * tag 'i2c-for-6.8-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: i2c: imx: when being a target, mark the last read as processed
2 parents c6a597f + 87aec49 commit fef8526

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/i2c/busses/i2c-imx.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,11 @@ static irqreturn_t i2c_imx_slave_handle(struct imx_i2c_struct *i2c_imx,
803803
ctl &= ~I2CR_MTX;
804804
imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR);
805805
imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR);
806+
807+
/* flag the last byte as processed */
808+
i2c_imx_slave_event(i2c_imx,
809+
I2C_SLAVE_READ_PROCESSED, &value);
810+
806811
i2c_imx_slave_finish_op(i2c_imx);
807812
return IRQ_HANDLED;
808813
}

0 commit comments

Comments
 (0)