silax.blogg.se

Syncback linux
Syncback linux












syncback linux

+ i2c_put_dma_safe_msg_buf(rx_buf, msg, -553,6 +553,7 static int geni_i2c_gpi(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, i2c_put_dma_safe_msg_buf(rx_buf, msg, false) + i2c_put_dma_safe_msg_buf(tx_buf, msg, !gi2c->err) ĭma_unmap_single(gi2c->se.dev->parent, rx_addr, msg->len, DMA_FROM_DEVICE) i2c_put_dma_safe_msg_buf(tx_buf, msg, false) +++ -484,12 +484,12 static void geni_i2c_gpi_unmap(struct geni_i2c_dev *gi2c, struct i2c_msg *msg,ĭma_unmap_single(gi2c->se.dev->parent, tx_addr, msg->len, DMA_TO_DEVICE)

syncback linux

Set xferred in i2c_put_dma_safe_msg_buf() to true in case of no error toĮnsure the sync-back of this dma buffer to the message.ĭrivers/i2c/busses/i2c-qcom-geni.c | 5 +++-ġ file changed, 3 insertions(+), 2 deletions(-)ĭiff -git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c In this case a bounce buffer is returned by i2c_get_dma_safe_msg_buf(),Īnd it has to synced back to the message after the transfer is done.Īdd missing assignment of dma buffer in geni_i2c_gpi(). To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Sumit Semwal,Ĭc: Robin Reckmann, linux-arm-msm, linux-i2c, linux-kernel,įix i2c transfers using GPI DMA mode for all message types that do not set ` (4 more replies) 0 siblings, 5 replies 7+ messages in threadįrom: Robin Reckmann 14:04 UTC ( / raw) I2c: qcom-geni: Fix GPI DMA buffer sync-back archive mirror help / color / mirror / Atom feed * i2c: qcom-geni: Fix GPI DMA buffer sync-back 14:04 Robin Reckmann














Syncback linux