06.02.2019 22:16, Sowjanya Komatineni пишет: > + if (i2c_dev->msg_read && i2c_dev->msg_err == I2C_ERR_NONE) { > + dma_sync_single_for_cpu(i2c_dev->dev, > + i2c_dev->dma_phys, > + xfer_size, > + DMA_FROM_DEVICE); > + memcpy(i2c_dev->msg_buf, i2c_dev->dma_buf, > + msg->len); > + } > + > + if (i2c_dev->msg_err != I2C_ERR_NONE) { > + dmaengine_synchronize(i2c_dev->msg_read ? > + i2c_dev->rx_dma_chan : > + i2c_dev->tx_dma_chan); > + } Minor nit: parentheses are not really around the dmaengine_synchronize()