|
@@ -405,14 +405,14 @@ static void cdns_i2c_mrecv(struct cdns_i2c *id)
|
|
|
cdns_i2c_writereg(id->recv_count, CDNS_I2C_XFER_SIZE_OFFSET);
|
|
|
}
|
|
|
|
|
|
+ /* Set the slave address in address register - triggers operation */
|
|
|
+ cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK,
|
|
|
+ CDNS_I2C_ADDR_OFFSET);
|
|
|
/* Clear the bus hold flag if bytes to receive is less than FIFO size */
|
|
|
if (!id->bus_hold_flag &&
|
|
|
((id->p_msg->flags & I2C_M_RECV_LEN) != I2C_M_RECV_LEN) &&
|
|
|
(id->recv_count <= CDNS_I2C_FIFO_DEPTH))
|
|
|
cdns_i2c_clear_bus_hold(id);
|
|
|
- /* Set the slave address in address register - triggers operation */
|
|
|
- cdns_i2c_writereg(id->p_msg->addr & CDNS_I2C_ADDR_MASK,
|
|
|
- CDNS_I2C_ADDR_OFFSET);
|
|
|
cdns_i2c_writereg(CDNS_I2C_ENABLED_INTR_MASK, CDNS_I2C_IER_OFFSET);
|
|
|
}
|
|
|
|