diff options
author | 2024-02-24 09:46:05 -0800 | |
---|---|---|
committer | 2024-02-24 09:46:05 -0800 | |
commit | fef85269a19d277f23fc5ff08a3c356beeb54cb3 (patch) | |
tree | 83d7b809ca0f21076f64ff80c3b61abbfb5dd562 | |
parent | Merge tag 'loongarch-fixes-6.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson (diff) | |
parent | i2c: imx: when being a target, mark the last read as processed (diff) | |
download | wireguard-linux-fef85269a19d277f23fc5ff08a3c356beeb54cb3.tar.xz wireguard-linux-fef85269a19d277f23fc5ff08a3c356beeb54cb3.zip |
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
Diffstat (limited to '')
-rw-r--r-- | drivers/i2c/busses/i2c-imx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 88a053987403..60e813137f84 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -803,6 +803,11 @@ static irqreturn_t i2c_imx_slave_handle(struct imx_i2c_struct *i2c_imx, ctl &= ~I2CR_MTX; imx_i2c_write_reg(ctl, i2c_imx, IMX_I2C_I2CR); imx_i2c_read_reg(i2c_imx, IMX_I2C_I2DR); + + /* flag the last byte as processed */ + i2c_imx_slave_event(i2c_imx, + I2C_SLAVE_READ_PROCESSED, &value); + i2c_imx_slave_finish_op(i2c_imx); return IRQ_HANDLED; } |