lkml.org 
[lkml]   [2020]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v8 23/32] i2c: tegra: Factor out packet header setup from tegra_i2c_xfer_msg()
From
Date
...
> + 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.

\
 
 \ /
  Last update: 2020-09-29 23:17    [W:2.727 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site