Skip to content
Snippets Groups Projects
Commit e12ad0b8 authored by Biwen Li's avatar Biwen Li Committed by Dong Aisheng
Browse files

i2c: slave: support I2C_SLAVE_STOP event for the read transactions


Support I2C_SLAVE_STOP event for the read transactions(master read from slave)

Signed-off-by: default avatarBiwen Li <biwen.li@nxp.com>
parent 75602f58
No related branches found
No related tags found
No related merge requests found
......@@ -1493,6 +1493,7 @@ static irqreturn_t i2c_imx_slave_isr(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);
i2c_slave_event(i2c_imx->slave, I2C_SLAVE_STOP, &value);
}
return IRQ_HANDLED;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment