Re: [PATCH v8 23/32] i2c: tegra: Factor out packet header setup from tegra_i2c_xfer_msg()
From: Dmitry Osipenko
Date: Tue Sep 29 2020 - 17:17:10 EST
...
> + tegra_i2c_push_packet_header(i2c_dev, msg, end_state);
>
> if (!i2c_dev->msg_read) {
> if (i2c_dev->is_curr_dma_xfer) {
> - memcpy(buffer, msg->buf, msg->len);
> + memcpy(i2c_dev->dma_buf, msg->buf, msg->len);
I spotted that this now shall be i2c_dev->dma_buf + I2C_PACKET_HEADER_SIZE.
I also checked that the enforced DMA mode doesn't work using v8 and it
works fine after the fix. Will make v9 shortly.